Class AbstractAddressingVersion
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.version.AbstractAddressingVersion
- All Implemented Interfaces:
AddressingVersion
- Direct Known Subclasses:
Addressing10,Addressing200408
public abstract class AbstractAddressingVersion
extends TransformerObjectSupport
implements AddressingVersion
Abstract base class for
AddressingVersion implementations. Uses XPathExpressions to retrieve
addressing information.- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddressingHeaders(SoapMessage message, MessageAddressingProperties map) Adds addressing SOAP headers to the given message, using the givenMessageAddressingProperties.protected voidaddEndpointReference(SoapHeaderElement headerElement, EndpointReference epr) Adds ReplyTo, FaultTo, or From EPR to the given header Element.final SoapFaultAdds a Invalid Addressing Header fault to the given message.final SoapFaultAdds a Message Addressing Header Required fault to the given message.protected voidaddReferenceNodes(Result result, List<Node> nodes) protected QNameReturns the qualified name of theActionaddressing header.protected QNameThe qualified name of theAddressinEndpointReference.protected abstract URIReturns the anonymous URI.protected abstract EndpointReferenceReturns the default ReplyTo EPR.protected abstract URIReturns the default To URI.protected QNameReturns the qualified name of theFaultToaddressing header.protected QNameReturns the qualified name of theFromaddressing header.protected abstract StringReturns the reason of the fault that indicates that a header is invalid.protected abstract QNameReturns the qualified name of the fault subcode that indicates that a header is invalid.protected abstract StringReturns the reason of the fault that indicates that a header is missing.protected abstract QNameReturns the qualified name of the fault subcode that indicates that a header is missing.Returns theMessageAddressingPropertiesfor the given message.protected QNameReturns the qualified name of theMessageIDaddressing header.protected StringReturns the prefix associated with the WS-Addressing namespace handled by this specification.protected abstract StringReturns the WS-Addressing namespace handled by this specification.protected abstract URIgetNone()Returns the none URI, ornullif the spec does not define it.protected QNameReturns the qualified name of theReferenceParametersin the endpoint reference.protected QNameReturns the qualified name of theReferencePropertiesin the endpoint reference.protected QNameReturns the qualified name of theRelatesToaddressing header.protected QNameReturns the qualified name of theRelatesToaddressing header.protected QNameReturns the qualified name of theReplyToaddressing header.protected QNameReturns the qualified name of theToaddressing header.final booleanIndicates whether the given endpoint reference has a Anonymous address.final booleanIndicates whether the given endpoint reference has a None address.final booleanunderstands(SoapHeaderElement headerElement) Given aSoapHeaderElement, return whether or not this version understands it.Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.soap.addressing.version.AddressingVersion
hasRequiredProperties, isToHeaderRequired
-
Constructor Details
-
AbstractAddressingVersion
protected AbstractAddressingVersion()
-
-
Method Details
-
getMessageAddressingProperties
Description copied from interface:AddressingVersionReturns theMessageAddressingPropertiesfor the given message.- Specified by:
getMessageAddressingPropertiesin interfaceAddressingVersion- Parameters:
message- the message to find the map for- Returns:
- the message addressing properties
- See Also:
-
addAddressingHeaders
Description copied from interface:AddressingVersionAdds addressing SOAP headers to the given message, using the givenMessageAddressingProperties.- Specified by:
addAddressingHeadersin interfaceAddressingVersion- Parameters:
message- the message to add the headers tomap- the message addressing properties
-
understands
Description copied from interface:AddressingVersionGiven aSoapHeaderElement, return whether or not this version understands it.- Specified by:
understandsin interfaceAddressingVersion- Parameters:
headerElement- the header- Returns:
trueif understood,falseotherwise
-
addEndpointReference
Adds ReplyTo, FaultTo, or From EPR to the given header Element. -
addReferenceNodes
-
addInvalidAddressingHeaderFault
Description copied from interface:AddressingVersionAdds a Invalid Addressing Header fault to the given message.- Specified by:
addInvalidAddressingHeaderFaultin interfaceAddressingVersion- See Also:
-
addMessageAddressingHeaderRequiredFault
Description copied from interface:AddressingVersionAdds a Message Addressing Header Required fault to the given message.- Specified by:
addMessageAddressingHeaderRequiredFaultin interfaceAddressingVersion- See Also:
-
hasAnonymousAddress
Description copied from interface:AddressingVersionIndicates whether the given endpoint reference has a Anonymous address. This address is used to indicate that a message should be sent in-band.- Specified by:
hasAnonymousAddressin interfaceAddressingVersion- See Also:
-
hasNoneAddress
Description copied from interface:AddressingVersionIndicates whether the given endpoint reference has a None address. Messages to be sent to this address will not be sent.- Specified by:
hasNoneAddressin interfaceAddressingVersion- See Also:
-
getNamespacePrefix
Returns the prefix associated with the WS-Addressing namespace handled by this specification. -
getNamespaceUri
Returns the WS-Addressing namespace handled by this specification. -
getToName
Returns the qualified name of theToaddressing header. -
getFromName
Returns the qualified name of theFromaddressing header. -
getReplyToName
Returns the qualified name of theReplyToaddressing header. -
getFaultToName
Returns the qualified name of theFaultToaddressing header. -
getActionName
Returns the qualified name of theActionaddressing header. -
getMessageIdName
Returns the qualified name of theMessageIDaddressing header. -
getRelatesToName
Returns the qualified name of theRelatesToaddressing header. -
getRelationshipTypeName
Returns the qualified name of theRelatesToaddressing header. -
getReferencePropertiesName
Returns the qualified name of theReferencePropertiesin the endpoint reference. Returnsnullwhen reference properties are not supported by this version of the spec. -
getReferenceParametersName
Returns the qualified name of theReferenceParametersin the endpoint reference. Returnsnullwhen reference parameters are not supported by this version of the spec. -
getAddressName
The qualified name of theAddressinEndpointReference. -
getDefaultTo
Returns the default To URI. -
getDefaultReplyTo
Returns the default ReplyTo EPR. Can be based on the From EPR, or the anonymous URI. -
getAnonymous
Returns the anonymous URI. -
getNone
Returns the none URI, ornullif the spec does not define it. -
getMessageAddressingHeaderRequiredFaultSubcode
Returns the qualified name of the fault subcode that indicates that a header is missing. -
getMessageAddressingHeaderRequiredFaultReason
Returns the reason of the fault that indicates that a header is missing. -
getInvalidAddressingHeaderFaultSubcode
Returns the qualified name of the fault subcode that indicates that a header is invalid. -
getInvalidAddressingHeaderFaultReason
Returns the reason of the fault that indicates that a header is invalid.
-