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 XPathExpression
s 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddressingHeaders
(SoapMessage message, MessageAddressingProperties map) Adds addressing SOAP headers to the given message, using the givenMessageAddressingProperties
.protected void
addEndpointReference
(SoapHeaderElement headerElement, EndpointReference epr) Adds ReplyTo, FaultTo, or From EPR to the given header Element.final SoapFault
Adds a Invalid Addressing Header fault to the given message.final SoapFault
Adds a Message Addressing Header Required fault to the given message.protected void
addReferenceNodes
(Result result, List<Node> nodes) protected QName
Returns the qualified name of theAction
addressing header.protected QName
The qualified name of theAddress
inEndpointReference
.protected abstract URI
Returns the anonymous URI.protected abstract EndpointReference
Returns the default ReplyTo EPR.protected abstract URI
Returns the default To URI.protected QName
Returns the qualified name of theFaultTo
addressing header.protected QName
Returns the qualified name of theFrom
addressing header.protected abstract String
Returns the reason of the fault that indicates that a header is invalid.protected abstract QName
Returns the qualified name of the fault subcode that indicates that a header is invalid.protected abstract String
Returns the reason of the fault that indicates that a header is missing.protected abstract QName
Returns the qualified name of the fault subcode that indicates that a header is missing.Returns theMessageAddressingProperties
for the given message.protected QName
Returns the qualified name of theMessageID
addressing header.protected String
Returns the prefix associated with the WS-Addressing namespace handled by this specification.protected abstract String
Returns the WS-Addressing namespace handled by this specification.protected abstract URI
getNone()
Returns the none URI, ornull
if the spec does not define it.protected QName
Returns the qualified name of theReferenceParameters
in the endpoint reference.protected QName
Returns the qualified name of theReferenceProperties
in the endpoint reference.protected QName
Returns the qualified name of theRelatesTo
addressing header.protected QName
Returns the qualified name of theRelatesTo
addressing header.protected QName
Returns the qualified name of theReplyTo
addressing header.protected QName
Returns the qualified name of theTo
addressing header.final boolean
Indicates whether the given endpoint reference has a Anonymous address.final boolean
Indicates whether the given endpoint reference has a None address.final boolean
understands
(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, transform
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.soap.addressing.version.AddressingVersion
hasRequiredProperties, isToHeaderRequired
-
Constructor Details
-
AbstractAddressingVersion
protected AbstractAddressingVersion()
-
-
Method Details
-
getMessageAddressingProperties
Description copied from interface:AddressingVersion
Returns theMessageAddressingProperties
for the given message.- Specified by:
getMessageAddressingProperties
in interfaceAddressingVersion
- Parameters:
message
- the message to find the map for- Returns:
- the message addressing properties
- See Also:
-
addAddressingHeaders
Description copied from interface:AddressingVersion
Adds addressing SOAP headers to the given message, using the givenMessageAddressingProperties
.- Specified by:
addAddressingHeaders
in interfaceAddressingVersion
- Parameters:
message
- the message to add the headers tomap
- the message addressing properties
-
understands
Description copied from interface:AddressingVersion
Given aSoapHeaderElement
, return whether or not this version understands it.- Specified by:
understands
in interfaceAddressingVersion
- Parameters:
headerElement
- the header- Returns:
true
if understood,false
otherwise
-
addEndpointReference
Adds ReplyTo, FaultTo, or From EPR to the given header Element. -
addReferenceNodes
-
addInvalidAddressingHeaderFault
Description copied from interface:AddressingVersion
Adds a Invalid Addressing Header fault to the given message.- Specified by:
addInvalidAddressingHeaderFault
in interfaceAddressingVersion
- See Also:
-
addMessageAddressingHeaderRequiredFault
Description copied from interface:AddressingVersion
Adds a Message Addressing Header Required fault to the given message.- Specified by:
addMessageAddressingHeaderRequiredFault
in interfaceAddressingVersion
- See Also:
-
hasAnonymousAddress
Description copied from interface:AddressingVersion
Indicates 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:
hasAnonymousAddress
in interfaceAddressingVersion
- See Also:
-
hasNoneAddress
Description copied from interface:AddressingVersion
Indicates whether the given endpoint reference has a None address. Messages to be sent to this address will not be sent.- Specified by:
hasNoneAddress
in 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 theTo
addressing header. -
getFromName
Returns the qualified name of theFrom
addressing header. -
getReplyToName
Returns the qualified name of theReplyTo
addressing header. -
getFaultToName
Returns the qualified name of theFaultTo
addressing header. -
getActionName
Returns the qualified name of theAction
addressing header. -
getMessageIdName
Returns the qualified name of theMessageID
addressing header. -
getRelatesToName
Returns the qualified name of theRelatesTo
addressing header. -
getRelationshipTypeName
Returns the qualified name of theRelatesTo
addressing header. -
getReferencePropertiesName
Returns the qualified name of theReferenceProperties
in the endpoint reference. Returnsnull
when reference properties are not supported by this version of the spec. -
getReferenceParametersName
Returns the qualified name of theReferenceParameters
in the endpoint reference. Returnsnull
when reference parameters are not supported by this version of the spec. -
getAddressName
The qualified name of theAddress
inEndpointReference
. -
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, ornull
if 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.
-