Package org.apache.axis2.addressing
Class AddressingHelper
java.lang.Object
org.apache.axis2.addressing.AddressingHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.axiom.om.OMElementstatic StringgetAddressingRequirementParemeterValue(AxisDescription axisDescription) static StringgetInvocationPatternParameterValue(AxisOperation axisOperation) Extract the parameter representing the Anonymous flag from the AxisOperation and return the String value.static Stringstatic booleanisFaultRedirected(MessageContext messageContext) Returns true if the FaultTo address does not match one of the supported anonymous urls.static booleanisReplyRedirected(MessageContext messageContext) Returns true if the ReplyTo address does not match one of the supported anonymous urls.static booleanisSyncFaultAllowed(MessageContext messageContext) Returns true if the FaultTo address matches one of the supported anonymous urls.static booleanisSyncReplyAllowed(MessageContext messageContext) Returns true if the ReplyTo address matches one of the supported anonymous urls.static voidsetAddressingRequirementParemeterValue(AxisDescription axisDescription, String value) static voidsetInvocationPatternParameterValue(AxisOperation axisOperation, String value) Set the value of an existing unlocked Parameter representing Anonymous or add a new one if one does not exist.static booleanshouldSendFaultToFaultTo(MessageContext messageContext) If the inbound FaultTo header was invalid and caused a fault, the fault should not be sent to it.
-
Constructor Details
-
AddressingHelper
public AddressingHelper()
-
-
Method Details
-
isSyncReplyAllowed
Returns true if the ReplyTo address matches one of the supported anonymous urls. If the ReplyTo is not set, anonymous is assumed, per the Final spec. The AddressingInHandler should have set the ReplyTo to non-null in the 2004/08 case to ensure the different semantics. (per AXIS2-885) According to the WS-Addressing Metadata spec the none URI must not be rejected.- Parameters:
messageContext-
-
isSyncFaultAllowed
Returns true if the FaultTo address matches one of the supported anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the spec. According to the WS-Addressing Metadata spec the none URI must not be rejected.- Parameters:
messageContext-- See Also:
-
isReplyRedirected
Returns true if the ReplyTo address does not match one of the supported anonymous urls. If the ReplyTo is not set, anonymous is assumed, per the Final spec. The AddressingInHandler should have set the ReplyTo to non-null in the 2004/08 case to ensure the different semantics. (per AXIS2-885)- Parameters:
messageContext-
-
isFaultRedirected
Returns true if the FaultTo address does not match one of the supported anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the spec.- Parameters:
messageContext-- See Also:
-
shouldSendFaultToFaultTo
If the inbound FaultTo header was invalid and caused a fault, the fault should not be sent to it.- Returns:
- true if the fault should be sent to the FaultTo
-
getAddressingRequirementParemeterValue
-
getRequestAddressingRequirementParameterValue
-
getInvocationPatternParameterValue
Extract the parameter representing the Anonymous flag from the AxisOperation and return the String value. Return the default of "optional" if not specified.- Parameters:
axisOperation-
-
setInvocationPatternParameterValue
Set the value of an existing unlocked Parameter representing Anonymous or add a new one if one does not exist. If a locked Parameter of the same name already exists the method will trace and return.- Parameters:
axisOperation-value-
-
setAddressingRequirementParemeterValue
public static void setAddressingRequirementParemeterValue(AxisDescription axisDescription, String value) -
getAddressingIdentityParameterValue
public static org.apache.axiom.om.OMElement getAddressingIdentityParameterValue(AxisEndpoint endpoint) - Parameters:
endpoint- The endpoint to check for aAddressingConstants.ADDRESSING_IDENTITY_PARAMETER. Must not benull- Returns:
- The Addressing identity OMElement (
AddressingConstants.QNAME_IDENTITY) if such is configured on the specifiedendpointor itsbinding, ornullif not available. This will normally be available if the service was created from a WSDL which contains a WS-Addressing endpoint reference with an <wsid:Identity> extension either on the port or corresponding binding.
-