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:
Binding,SOAPBinding,Binding
public class SOAPBinding extends BindingImpl implements SOAPBinding
An implementation of the javax.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_NS
-
Fields inherited from interface javax.xml.ws.soap.SOAPBinding
SOAP11HTTP_BINDING, SOAP11HTTP_MTOM_BINDING, SOAP12HTTP_BINDING, SOAP12HTTP_MTOM_BINDING
-
-
Constructor Summary
Constructors Constructor Description SOAPBinding(EndpointDescription endpointDesc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddressingNamespace()AddressingFeature.ResponsesgetAddressingResponses()Return the type of responses required by Addressing.EndpointReferencegetAxis2EndpointReference()MessageFactorygetMessageFactory()intgetMTOMThreshold()Set<String>getRoles()SOAPFactorygetSOAPFactory()booleanisAddressingConfigured()Indicates if Addressing was configured explicitly via metadata, such as through a deployment descriptor.booleanisAddressingEnabled()Indicates if addressing is enabled or disabled.booleanisAddressingRequired()Indicates if addressing is required or not.booleanisMTOMEnabled()booleanisRespectBindingEnabled()voidsetAddressingConfigured(boolean configured)Set whether Addressing was explicitly configured via metadata.voidsetAddressingEnabled(boolean enabled)voidsetAddressingNamespace(String addressingNamespace)voidsetAddressingRequired(boolean required)voidsetAddressingResponses(AddressingFeature.Responses responses)voidsetAxis2EndpointReference(EndpointReference epr)voidsetMTOMEnabled(boolean flag)voidsetMTOMThreshold(int threshold)voidsetRespectBindingEnabled(boolean enabled)voidsetRoles(Set<String> set)-
Methods inherited from class org.apache.axis2.jaxws.binding.BindingImpl
configure, getBindingID, getFeature, getHandlerChain, setFeatures, setHandlerChain
-
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
-
-
-
-
Constructor Detail
-
SOAPBinding
public SOAPBinding(EndpointDescription endpointDesc)
-
-
Method Detail
-
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:
isAddressingEnabled(),isAddressingRequired(),getAddressingResponses()
-
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:
isAddressingConfigured()
-
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:
isAddressingConfigured()
-
setAddressingRequired
public void setAddressingRequired(boolean required)
-
getAddressingResponses
public 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:
isAddressingConfigured()
-
setAddressingResponses
public void setAddressingResponses(AddressingFeature.Responses responses)
-
getMessageFactory
public MessageFactory getMessageFactory()
- Specified by:
getMessageFactoryin interfaceSOAPBinding
-
getRoles
public Set<String> getRoles()
- Specified by:
getRolesin interfaceSOAPBinding
-
getSOAPFactory
public SOAPFactory getSOAPFactory()
- Specified by:
getSOAPFactoryin interfaceSOAPBinding
-
isMTOMEnabled
public boolean isMTOMEnabled()
- Specified by:
isMTOMEnabledin interfaceSOAPBinding
-
setMTOMEnabled
public void setMTOMEnabled(boolean flag)
- Specified by:
setMTOMEnabledin interfaceSOAPBinding
-
setRoles
public void setRoles(Set<String> set)
- Specified by:
setRolesin interfaceSOAPBinding
-
getAddressingNamespace
public String getAddressingNamespace()
- Specified by:
getAddressingNamespacein interfaceBinding- Overrides:
getAddressingNamespacein classBindingImpl
-
getAxis2EndpointReference
public EndpointReference getAxis2EndpointReference()
- Specified by:
getAxis2EndpointReferencein interfaceBinding- Overrides:
getAxis2EndpointReferencein classBindingImpl
-
setAddressingNamespace
public void setAddressingNamespace(String addressingNamespace)
- Specified by:
setAddressingNamespacein interfaceBinding- Overrides:
setAddressingNamespacein classBindingImpl
-
setAxis2EndpointReference
public void setAxis2EndpointReference(EndpointReference epr)
- Specified by:
setAxis2EndpointReferencein interfaceBinding- Overrides:
setAxis2EndpointReferencein classBindingImpl
-
-