public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
/** * This method separates the logical and protocol handlers and * sets the HandlerConfiguration. * Only logical handlers are allowed with HTTPBinding. * Setting SOAPHandlers throws WebServiceException */ public void setHandlerChain(List<Handler> chain) { for (Handler handler : chain) { if (!(handler instanceof LogicalHandler)) { throw new WebServiceException(ClientMessages.NON_LOGICAL_HANDLER_SET(handler.getClass())); } } setHandlerConfig(new HandlerConfiguration(Collections.<String>emptySet(), chain)); } }
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
/** * This method separates the logical and protocol handlers and * sets the HandlerConfiguration. * Only logical handlers are allowed with HTTPBinding. * Setting SOAPHandlers throws WebServiceException */ public void setHandlerChain(List<Handler> chain) { for (Handler handler : chain) { if (!(handler instanceof LogicalHandler)) { throw new WebServiceException(ClientMessages.NON_LOGICAL_HANDLER_SET(handler.getClass())); } } setHandlerConfig(new HandlerConfiguration(Collections.<String>emptySet(), chain)); } }
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
/** * This method separates the logical and protocol handlers and * sets the HandlerConfiguration. * Only logical handlers are allowed with HTTPBinding. * Setting SOAPHandlers throws WebServiceException */ public void setHandlerChain(List<Handler> chain) { for (Handler handler : chain) { if (!(handler instanceof LogicalHandler)) { throw new WebServiceException(ClientMessages.NON_LOGICAL_HANDLER_SET(handler.getClass())); } } setHandlerConfig(new HandlerConfiguration(Collections.<String>emptySet(), chain)); } }
public static BindingImpl create(@NotNull BindingID bindingId, WebServiceFeature[] features) { // Override the BindingID from the features for(WebServiceFeature feature : features) { if (feature instanceof BindingTypeFeature) { BindingTypeFeature f = (BindingTypeFeature)feature; bindingId = BindingID.parse(f.getBindingId()); } } if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(features); else return new SOAPBindingImpl(bindingId, features); }
public static BindingImpl create(@NotNull BindingID bindingId, WebServiceFeature[] features) { // Override the BindingID from the features for(WebServiceFeature feature : features) { if (feature instanceof BindingTypeFeature) { BindingTypeFeature f = (BindingTypeFeature)feature; bindingId = BindingID.parse(f.getBindingId()); } } if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(features); else return new SOAPBindingImpl(bindingId, features); }
public static BindingImpl create(@NotNull BindingID bindingId, WebServiceFeature[] features) { // Override the BindingID from the features for(WebServiceFeature feature : features) { if (feature instanceof BindingTypeFeature) { BindingTypeFeature f = (BindingTypeFeature)feature; bindingId = BindingID.parse(f.getBindingId()); } } if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(features); else return new SOAPBindingImpl(bindingId, features); }