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 String
getAddressingNamespace()
AddressingFeature.Responses
getAddressingResponses()
Return the type of responses required by Addressing.EndpointReference
getAxis2EndpointReference()
MessageFactory
getMessageFactory()
int
getMTOMThreshold()
Set<String>
getRoles()
SOAPFactory
getSOAPFactory()
boolean
isAddressingConfigured()
Indicates if Addressing was configured explicitly via metadata, such as through a deployment descriptor.boolean
isAddressingEnabled()
Indicates if addressing is enabled or disabled.boolean
isAddressingRequired()
Indicates if addressing is required or not.boolean
isMTOMEnabled()
boolean
isRespectBindingEnabled()
void
setAddressingConfigured(boolean configured)
Set whether Addressing was explicitly configured via metadata.void
setAddressingEnabled(boolean enabled)
void
setAddressingNamespace(String addressingNamespace)
void
setAddressingRequired(boolean required)
void
setAddressingResponses(AddressingFeature.Responses responses)
void
setAxis2EndpointReference(EndpointReference epr)
void
setMTOMEnabled(boolean flag)
void
setMTOMThreshold(int threshold)
void
setRespectBindingEnabled(boolean enabled)
void
setRoles(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:
getMessageFactory
in interfaceSOAPBinding
-
getRoles
public Set<String> getRoles()
- Specified by:
getRoles
in interfaceSOAPBinding
-
getSOAPFactory
public SOAPFactory getSOAPFactory()
- Specified by:
getSOAPFactory
in interfaceSOAPBinding
-
isMTOMEnabled
public boolean isMTOMEnabled()
- Specified by:
isMTOMEnabled
in interfaceSOAPBinding
-
setMTOMEnabled
public void setMTOMEnabled(boolean flag)
- Specified by:
setMTOMEnabled
in interfaceSOAPBinding
-
setRoles
public void setRoles(Set<String> set)
- Specified by:
setRoles
in interfaceSOAPBinding
-
getAddressingNamespace
public String getAddressingNamespace()
- Specified by:
getAddressingNamespace
in interfaceBinding
- Overrides:
getAddressingNamespace
in classBindingImpl
-
getAxis2EndpointReference
public EndpointReference getAxis2EndpointReference()
- Specified by:
getAxis2EndpointReference
in interfaceBinding
- Overrides:
getAxis2EndpointReference
in classBindingImpl
-
setAddressingNamespace
public void setAddressingNamespace(String addressingNamespace)
- Specified by:
setAddressingNamespace
in interfaceBinding
- Overrides:
setAddressingNamespace
in classBindingImpl
-
setAxis2EndpointReference
public void setAxis2EndpointReference(EndpointReference epr)
- Specified by:
setAxis2EndpointReference
in interfaceBinding
- Overrides:
setAxis2EndpointReference
in classBindingImpl
-
-