com.sun.xml.ws.binding
Class SOAPBindingImpl

java.lang.Object
  extended by com.sun.xml.ws.binding.BindingImpl
      extended by 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


Field Summary
protected  SOAPVersion soapVersion
           
static String X_SOAP12HTTP_BINDING
           
 
Fields inherited from class com.sun.xml.ws.binding.BindingImpl
features
 
Fields inherited from interface javax.xml.ws.soap.SOAPBinding
SOAP11HTTP_BINDING, SOAP11HTTP_MTOM_BINDING, SOAP12HTTP_BINDING, SOAP12HTTP_MTOM_BINDING
 
Constructor Summary
SOAPBindingImpl(BindingID bindingId)
          Use BindingImpl.create(BindingID) to create this.
SOAPBindingImpl(BindingID bindingId, javax.xml.ws.WebServiceFeature... features)
          Use BindingImpl.create(BindingID) to create this.
 
Method Summary
protected  void addRequiredRoles()
           
protected  HandlerConfiguration createHandlerConfig(List<javax.xml.ws.handler.Handler> handlerChain)
          This method separates the logical and protocol handlers.
 javax.xml.soap.MessageFactory getMessageFactory()
           
 Set<String> getRoles()
           
 javax.xml.soap.SOAPFactory getSOAPFactory()
           
 boolean isMTOMEnabled()
          Used typically by the runtime to enable/disable Mtom optimization
 void setMTOMEnabled(boolean b)
          Client application can override if the MTOM optimization should be enabled
 void setPortKnownHeaders(Set<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(Set<String> roles)
          Adds the next and other roles in case this has been called by a user without them.
 
Methods inherited from class com.sun.xml.ws.binding.BindingImpl
addFeature, create, create, createCodec, getAddressingVersion, getBindingId, getBindingID, getDefaultBinding, getFeature, getFeatures, getHandlerChain, getHandlerConfig, getSOAPVersion, isFeatureEnabled, setFeatures, setHandlerChain, setHandlerConfig
 
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, setHandlerChain
 

Field Detail

X_SOAP12HTTP_BINDING

public static final String X_SOAP12HTTP_BINDING
See Also:
Constant Field Values

soapVersion

protected final SOAPVersion soapVersion
Constructor Detail

SOAPBindingImpl

SOAPBindingImpl(BindingID bindingId)
Use BindingImpl.create(BindingID) to create this.


SOAPBindingImpl

SOAPBindingImpl(BindingID bindingId,
                javax.xml.ws.WebServiceFeature... features)
Use BindingImpl.create(BindingID) to create this.

Parameters:
features - These features have a precedence over the implicit features associated with the BindingID.
Method Detail

setPortKnownHeaders

public void setPortKnownHeaders(@NotNull
                                Set<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 -

createHandlerConfig

protected HandlerConfiguration createHandlerConfig(List<javax.xml.ws.handler.Handler> handlerChain)
This method separates the logical and protocol handlers. Also parses Headers understood by SOAPHandlers and sets the HandlerConfiguration.

Specified by:
createHandlerConfig in class BindingImpl

addRequiredRoles

protected void addRequiredRoles()

getRoles

public Set<String> getRoles()
Specified by:
getRoles in interface javax.xml.ws.soap.SOAPBinding

setRoles

public void setRoles(Set<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