BindingID getBindingID(String protocol) { if (protocol.equals(SOAP11)) return BindingID.SOAP11_HTTP; if (protocol.equals(X_SOAP12)) return BindingID.SOAP12_HTTP; String lexical = nonstdProtocols.get(protocol); return (lexical != null) ? BindingID.parse(lexical) : null; }
BindingID getBindingID(String protocol) { if (protocol.equals(SOAP11)) return BindingID.SOAP11_HTTP; if (protocol.equals(X_SOAP12)) return BindingID.SOAP12_HTTP; String lexical = nonstdProtocols.get(protocol); return (lexical != null) ? BindingID.parse(lexical) : null; }
public Endpoint createAndPublishEndpoint(String address, Object implementor, WebServiceFeature... features) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor, features); endpoint.publish(address); return endpoint; }
public void addProtocolBinding(String tokenOrURI){ /* Convert short-form tokens to API's binding ids Unknown token, Put it as it is */ tokenOrURI = DeploymentDescriptorParser.getBindingIdForToken(tokenOrURI); String binding = BindingID.parse(tokenOrURI).toString(); protocolBindings.add(binding); constraintSet = true; }
public Endpoint createAndPublishEndpoint(String address, Object implementor, WebServiceFeature... features) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor, features); endpoint.publish(address); return endpoint; }
public void addProtocolBinding(String tokenOrURI){ /* Convert short-form tokens to API's binding ids Unknown token, Put it as it is */ tokenOrURI = DeploymentDescriptorParser.getBindingIdForToken(tokenOrURI); String binding = BindingID.parse(tokenOrURI).toString(); protocolBindings.add(binding); constraintSet = true; }
public Endpoint createAndPublishEndpoint(String address, Object implementor, WebServiceFeature... features) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor, features); endpoint.publish(address); return endpoint; }
@Override public Endpoint createAndPublishEndpoint(String address, Object implementor) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor); endpoint.publish(address); return endpoint; }
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException { if (!ports.containsKey(portName)) { BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId); ports.put(portName, new PortInfo(this, (endpointAddress == null) ? null : EndpointAddress.create(endpointAddress), portName, bid)); } else throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString())); }
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException { if (!ports.containsKey(portName)) { BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId); ports.put(portName, new PortInfo(this, (endpointAddress == null) ? null : EndpointAddress.create(endpointAddress), portName, bid)); } else throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString())); }
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }