Package org.apache.axis2.jaxws.binding
Class SOAPBinding
java.lang.Object
org.apache.axis2.jaxws.binding.BindingImpl
org.apache.axis2.jaxws.binding.SOAPBinding
- All Implemented Interfaces:
jakarta.xml.ws.Binding,jakarta.xml.ws.soap.SOAPBinding,Binding
An implementation of the jakarta.xml.ws.soap.SOAPBinding
interface. This is the default binding for JAX-WS, and will exist for all
Dispatch and Dynamic Proxy instances unless the XML/HTTP Binding is
explicitly specificied.
-
Field Summary
Fields inherited from class org.apache.axis2.jaxws.binding.BindingImpl
bindingId, roles, SOAP11_ENV_NS, SOAP12_ENV_NSFields inherited from interface jakarta.xml.ws.soap.SOAPBinding
SOAP11HTTP_BINDING, SOAP11HTTP_MTOM_BINDING, SOAP12HTTP_BINDING, SOAP12HTTP_MTOM_BINDING -
Constructor Summary
ConstructorsConstructorDescriptionSOAPBinding(org.apache.axis2.jaxws.description.EndpointDescription endpointDesc) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.ws.soap.AddressingFeature.ResponsesReturn the type of responses required by Addressing.org.apache.axis2.addressing.EndpointReferencejakarta.xml.soap.MessageFactoryintgetRoles()jakarta.xml.soap.SOAPFactorybooleanIndicates if Addressing was configured explicitly via metadata, such as through a deployment descriptor.booleanIndicates if addressing is enabled or disabled.booleanIndicates if addressing is required or not.booleanbooleanvoidsetAddressingConfigured(boolean configured) Set whether Addressing was explicitly configured via metadata.voidsetAddressingEnabled(boolean enabled) voidsetAddressingNamespace(String addressingNamespace) voidsetAddressingRequired(boolean required) voidsetAddressingResponses(jakarta.xml.ws.soap.AddressingFeature.Responses responses) voidsetAxis2EndpointReference(org.apache.axis2.addressing.EndpointReference epr) voidsetMTOMEnabled(boolean flag) voidsetMTOMThreshold(int threshold) voidsetRespectBindingEnabled(boolean enabled) voidMethods inherited from class org.apache.axis2.jaxws.binding.BindingImpl
configure, getBindingID, getFeature, getHandlerChain, setFeatures, setHandlerChainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.xml.ws.Binding
getBindingID, getHandlerChain, setHandlerChain
-
Constructor Details
-
SOAPBinding
public SOAPBinding(org.apache.axis2.jaxws.description.EndpointDescription endpointDesc)
-
-
Method Details
-
getMTOMThreshold
public int getMTOMThreshold() -
setMTOMThreshold
public void setMTOMThreshold(int threshold) -
isRespectBindingEnabled
public boolean isRespectBindingEnabled() -
setRespectBindingEnabled
public void setRespectBindingEnabled(boolean enabled) -
isAddressingConfigured
public boolean isAddressingConfigured()Indicates if Addressing was configured explicitly via metadata, such as through a deployment descriptor. If an AddressingAnnot was specified in the DBC, then this will answer true. The related addressing methods will return a default value if this method returns false.- Returns:
- true if addressing was explicitly configured via an AddressingAnnot in the DBC; false otherwise.
- See Also:
-
setAddressingConfigured
public void setAddressingConfigured(boolean configured) Set whether Addressing was explicitly configured via metadata. The default is false.- Parameters:
configured- boolean indicating of addressing was configured via metadata.
-
isAddressingEnabled
public boolean isAddressingEnabled()Indicates if addressing is enabled or disabled. Note that if addressing was not explicitly configured via metadata, this will return a default value.- Returns:
- true if addressing is enabled, false (default) otherwise.
- See Also:
-
setAddressingEnabled
public void setAddressingEnabled(boolean enabled) -
isAddressingRequired
public boolean isAddressingRequired()Indicates if addressing is required or not. Note that if addressing was not explicitly configured via metadata, this will return a default value.- Returns:
- true if addressing is required, false (default) otherwise.
- See Also:
-
setAddressingRequired
public void setAddressingRequired(boolean required) -
getAddressingResponses
public jakarta.xml.ws.soap.AddressingFeature.Responses getAddressingResponses()Return the type of responses required by Addressing. Note that if addressing was not explicitly configured via metadata, this will return a default value.- Returns:
- AddressingFeature.Responses ENUM value indicating what type of addressing responses are required.
- See Also:
-
setAddressingResponses
public void setAddressingResponses(jakarta.xml.ws.soap.AddressingFeature.Responses responses) -
getMessageFactory
public jakarta.xml.soap.MessageFactory getMessageFactory()- Specified by:
getMessageFactoryin interfacejakarta.xml.ws.soap.SOAPBinding
-
getRoles
- Specified by:
getRolesin interfacejakarta.xml.ws.soap.SOAPBinding
-
getSOAPFactory
public jakarta.xml.soap.SOAPFactory getSOAPFactory()- Specified by:
getSOAPFactoryin interfacejakarta.xml.ws.soap.SOAPBinding
-
isMTOMEnabled
public boolean isMTOMEnabled()- Specified by:
isMTOMEnabledin interfacejakarta.xml.ws.soap.SOAPBinding
-
setMTOMEnabled
public void setMTOMEnabled(boolean flag) - Specified by:
setMTOMEnabledin interfacejakarta.xml.ws.soap.SOAPBinding
-
setRoles
- Specified by:
setRolesin interfacejakarta.xml.ws.soap.SOAPBinding
-
getAddressingNamespace
- Specified by:
getAddressingNamespacein interfaceBinding- Overrides:
getAddressingNamespacein classBindingImpl
-
getAxis2EndpointReference
public org.apache.axis2.addressing.EndpointReference getAxis2EndpointReference()- Specified by:
getAxis2EndpointReferencein interfaceBinding- Overrides:
getAxis2EndpointReferencein classBindingImpl
-
setAddressingNamespace
- Specified by:
setAddressingNamespacein interfaceBinding- Overrides:
setAddressingNamespacein classBindingImpl
-
setAxis2EndpointReference
public void setAxis2EndpointReference(org.apache.axis2.addressing.EndpointReference epr) - Specified by:
setAxis2EndpointReferencein interfaceBinding- Overrides:
setAxis2EndpointReferencein classBindingImpl
-