org.apache.axis2.jaxws.binding
Class SOAPBinding

java.lang.Object
  extended by org.apache.axis2.jaxws.binding.BindingImpl
      extended by org.apache.axis2.jaxws.binding.SOAPBinding
All Implemented Interfaces:
Binding, SOAPBinding

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
SOAPBinding(EndpointDescription endpointDesc)
           
 
Method Summary
 String getAddressingNamespace()
           
 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(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 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(Responses responses)

getMessageFactory

public MessageFactory getMessageFactory()
Specified by:
getMessageFactory in interface SOAPBinding

getRoles

public Set<String> getRoles()
Specified by:
getRoles in interface SOAPBinding

getSOAPFactory

public SOAPFactory getSOAPFactory()
Specified by:
getSOAPFactory in interface SOAPBinding

isMTOMEnabled

public boolean isMTOMEnabled()
Specified by:
isMTOMEnabled in interface SOAPBinding

setMTOMEnabled

public void setMTOMEnabled(boolean flag)
Specified by:
setMTOMEnabled in interface SOAPBinding

setRoles

public void setRoles(Set<String> set)
Specified by:
setRoles in interface SOAPBinding

getAddressingNamespace

public String getAddressingNamespace()
Overrides:
getAddressingNamespace in class BindingImpl

getAxis2EndpointReference

public EndpointReference getAxis2EndpointReference()
Overrides:
getAxis2EndpointReference in class BindingImpl

setAddressingNamespace

public void setAddressingNamespace(String addressingNamespace)
Overrides:
setAddressingNamespace in class BindingImpl

setAxis2EndpointReference

public void setAxis2EndpointReference(EndpointReference epr)
Overrides:
setAxis2EndpointReference in class BindingImpl


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.