Java Code Examples for com.sun.xml.internal.ws.api.BindingID#equals()
The following examples show how to use
com.sun.xml.internal.ws.api.BindingID#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BindingImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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); }
Example 2
Source File: BindingImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); }
Example 3
Source File: WsgenOptions.java From hottub with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 4
Source File: BindingImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
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); }
Example 5
Source File: WsgenOptions.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 6
Source File: WsgenOptions.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 7
Source File: WsgenOptions.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 8
Source File: WsgenOptions.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 9
Source File: WsgenOptions.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 10
Source File: BindingImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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); }
Example 11
Source File: WsgenOptions.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 12
Source File: BindingImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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); }
Example 13
Source File: WsgenOptions.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void validateBinding() throws BadCommandLineException { if (genWsdl) { BindingID binding = BindingID.parse(endpoint); if ((binding.equals(BindingID.SOAP12_HTTP) || binding.equals(BindingID.SOAP12_HTTP_MTOM)) && !(protocol.equals(X_SOAP12) && isExtensionMode())) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(binding.toString(), endpoint.getName())); } if (binding.equals(BindingID.XML_HTTP)) { throw new BadCommandLineException(WscompileMessages.WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(binding.toString(), endpoint.getName())); } } }
Example 14
Source File: BindingImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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); }
Example 15
Source File: BindingImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
Example 16
Source File: BindingImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
Example 17
Source File: BindingImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
Example 18
Source File: BindingImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
Example 19
Source File: BindingImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }
Example 20
Source File: BindingImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static BindingImpl create(@NotNull BindingID bindingId) { if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(); else return new SOAPBindingImpl(bindingId); }