com.sun.xml.ws.binding
Class SOAPBindingImpl
java.lang.Object
com.sun.xml.ws.binding.BindingImpl
com.sun.xml.ws.binding.SOAPBindingImpl
- All Implemented Interfaces:
- WSBinding, javax.xml.ws.Binding, javax.xml.ws.soap.SOAPBinding
public final class SOAPBindingImpl
- extends BindingImpl
- implements javax.xml.ws.soap.SOAPBinding
| Fields inherited from interface javax.xml.ws.soap.SOAPBinding |
SOAP11HTTP_BINDING, SOAP11HTTP_MTOM_BINDING, SOAP12HTTP_BINDING, SOAP12HTTP_MTOM_BINDING |
|
Method Summary |
protected void |
addRequiredRoles(java.util.Set<java.lang.String> roles)
|
javax.xml.soap.MessageFactory |
getMessageFactory()
|
java.util.Set<java.lang.String> |
getRoles()
|
javax.xml.soap.SOAPFactory |
getSOAPFactory()
|
boolean |
isMTOMEnabled()
Used typically by the runtime to enable/disable Mtom optimization |
void |
setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain)
Sets the handlers on the binding and then sorts the handlers in to logical and protocol handlers. |
void |
setMTOMEnabled(boolean b)
Client application can override if the MTOM optimization should be enabled |
void |
setPortKnownHeaders(java.util.Set<javax.xml.namespace.QName> headers)
This method should be called if the binding has SOAPSEIModel
The Headers understood by the Port are set, so that they can be used for MU
processing. |
void |
setRoles(java.util.Set<java.lang.String> roles)
Adds the next and other roles in case this has
been called by a user without them. |
boolean |
understandsHeader(javax.xml.namespace.QName header)
TODO A feature should be created to configure processing of MU headers. |
| Methods inherited from class com.sun.xml.ws.binding.BindingImpl |
addKnownHeader, create, create, createCodec, getAddressingVersion, getBindingId, getBindingID, getDefaultBinding, getFaultMessageFeatures, getFeature, getFeatures, getHandlerChain, getHandlerConfig, getInputMessageFeatures, getKnownHeaders, getMessageContextFactory, getOperationFeature, getOperationFeatures, getOutputMessageFeatures, getSOAPVersion, initializeJavaActivationHandlers, isFeatureEnabled, isOperationFeatureEnabled, setFaultMessageFeatures, setHandlerConfig, setInputMessageFeatures, setMode, setOperationFeatures, setOutputMessageFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.ws.Binding |
getBindingID, getHandlerChain |
X_SOAP12HTTP_BINDING
public static final java.lang.String X_SOAP12HTTP_BINDING
- See Also:
- Constant Field Values
soapVersion
protected final SOAPVersion soapVersion
setPortKnownHeaders
public void setPortKnownHeaders(@NotNull
java.util.Set<javax.xml.namespace.QName> headers)
- This method should be called if the binding has SOAPSEIModel
The Headers understood by the Port are set, so that they can be used for MU
processing.
- Parameters:
headers - SOAP header names
understandsHeader
public boolean understandsHeader(javax.xml.namespace.QName header)
- TODO A feature should be created to configure processing of MU headers.
- Parameters:
header -
- Returns:
setHandlerChain
public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain)
- Sets the handlers on the binding and then sorts the handlers in to logical and protocol handlers.
Creates a new HandlerConfiguration object and sets it on the BindingImpl. Also parses Headers understood by
Protocol Handlers and sets the HandlerConfiguration.
- Specified by:
setHandlerChain in interface javax.xml.ws.Binding
addRequiredRoles
protected void addRequiredRoles(java.util.Set<java.lang.String> roles)
getRoles
public java.util.Set<java.lang.String> getRoles()
- Specified by:
getRoles in interface javax.xml.ws.soap.SOAPBinding
setRoles
public void setRoles(java.util.Set<java.lang.String> roles)
- Adds the next and other roles in case this has
been called by a user without them.
Creates a new HandlerConfiguration object and sets it on the BindingImpl.
- Specified by:
setRoles in interface javax.xml.ws.soap.SOAPBinding
isMTOMEnabled
public boolean isMTOMEnabled()
- Used typically by the runtime to enable/disable Mtom optimization
- Specified by:
isMTOMEnabled in interface javax.xml.ws.soap.SOAPBinding
setMTOMEnabled
public void setMTOMEnabled(boolean b)
- Client application can override if the MTOM optimization should be enabled
- Specified by:
setMTOMEnabled in interface javax.xml.ws.soap.SOAPBinding
getSOAPFactory
public javax.xml.soap.SOAPFactory getSOAPFactory()
- Specified by:
getSOAPFactory in interface javax.xml.ws.soap.SOAPBinding
getMessageFactory
public javax.xml.soap.MessageFactory getMessageFactory()
- Specified by:
getMessageFactory in interface javax.xml.ws.soap.SOAPBinding
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.