public abstract class AbstractAddressingVersion extends TransformerObjectSupport implements AddressingVersion
AddressingVersion implementations. Uses XPathExpressions to retrieve
addressing information.logger| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAddressingVersion() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddressingHeaders(SoapMessage message,
MessageAddressingProperties map)
Adds addressing SOAP headers to the given message, using the given
MessageAddressingProperties. |
protected void |
addEndpointReference(SoapHeaderElement headerElement,
EndpointReference epr)
Adds ReplyTo, FaultTo, or From EPR to the given header Element.
|
SoapFault |
addInvalidAddressingHeaderFault(SoapMessage message)
Adds a Invalid Addressing Header fault to the given message.
|
SoapFault |
addMessageAddressingHeaderRequiredFault(SoapMessage message)
Adds a Message Addressing Header Required fault to the given message.
|
protected void |
addReferenceNodes(Result result,
List<Node> nodes) |
protected QName |
getActionName()
Returns the qualified name of the
Action addressing header. |
protected QName |
getAddressName()
The qualified name of the
Address in EndpointReference. |
protected abstract URI |
getAnonymous()
Returns the anonymous URI.
|
protected abstract EndpointReference |
getDefaultReplyTo(EndpointReference from)
Returns the default ReplyTo EPR.
|
protected abstract URI |
getDefaultTo()
Returns the default To URI.
|
protected QName |
getFaultToName()
Returns the qualified name of the
FaultTo addressing header. |
protected QName |
getFromName()
Returns the qualified name of the
From addressing header. |
protected abstract String |
getInvalidAddressingHeaderFaultReason()
Returns the reason of the fault that indicates that a header is invalid.
|
protected abstract QName |
getInvalidAddressingHeaderFaultSubcode()
Returns the qualified name of the fault subcode that indicates that a header is invalid.
|
protected abstract String |
getMessageAddressingHeaderRequiredFaultReason()
Returns the reason of the fault that indicates that a header is missing.
|
protected abstract QName |
getMessageAddressingHeaderRequiredFaultSubcode()
Returns the qualified name of the fault subcode that indicates that a header is missing.
|
MessageAddressingProperties |
getMessageAddressingProperties(SoapMessage message)
Returns the
MessageAddressingProperties for the given
message. |
protected QName |
getMessageIdName()
Returns the qualified name of the
MessageID addressing header. |
protected String |
getNamespacePrefix()
Returns the prefix associated with the WS-Addressing namespace handled by this specification.
|
protected abstract String |
getNamespaceUri()
Returns the WS-Addressing namespace handled by this specification.
|
protected abstract URI |
getNone()
Returns the none URI, or
null if the spec does not define it. |
protected QName |
getReferenceParametersName()
Returns the qualified name of the
ReferenceParameters in the endpoint reference. |
protected QName |
getReferencePropertiesName()
Returns the qualified name of the
ReferenceProperties in the endpoint reference. |
protected QName |
getRelatesToName()
Returns the qualified name of the
RelatesTo addressing header. |
protected QName |
getRelationshipTypeName()
Returns the qualified name of the
RelatesTo addressing header. |
protected QName |
getReplyToName()
Returns the qualified name of the
ReplyTo addressing header. |
protected QName |
getToName()
Returns the qualified name of the
To addressing header. |
boolean |
hasAnonymousAddress(EndpointReference epr)
Indicates whether the given endpoint reference has a Anonymous address.
|
boolean |
hasNoneAddress(EndpointReference epr)
Indicates whether the given endpoint reference has a None address.
|
boolean |
understands(SoapHeaderElement headerElement)
Given a
SoapHeaderElement, return whether or not this version understands it. |
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasRequiredPropertiespublic MessageAddressingProperties getMessageAddressingProperties(SoapMessage message)
AddressingVersionMessageAddressingProperties for the given
message.getMessageAddressingProperties in interface AddressingVersionmessage - the message to find the map forpublic void addAddressingHeaders(SoapMessage message, MessageAddressingProperties map)
AddressingVersionMessageAddressingProperties.addAddressingHeaders in interface AddressingVersionmessage - the message to add the headers tomap - the message addressing propertiespublic final boolean understands(SoapHeaderElement headerElement)
AddressingVersionSoapHeaderElement, return whether or not this version understands it.understands in interface AddressingVersionheaderElement - the headertrue if understood, false otherwiseprotected void addEndpointReference(SoapHeaderElement headerElement, EndpointReference epr)
public final SoapFault addInvalidAddressingHeaderFault(SoapMessage message)
AddressingVersionaddInvalidAddressingHeaderFault in interface AddressingVersionpublic final SoapFault addMessageAddressingHeaderRequiredFault(SoapMessage message)
AddressingVersionaddMessageAddressingHeaderRequiredFault in interface AddressingVersionpublic final boolean hasAnonymousAddress(EndpointReference epr)
AddressingVersionhasAnonymousAddress in interface AddressingVersionpublic final boolean hasNoneAddress(EndpointReference epr)
AddressingVersionhasNoneAddress in interface AddressingVersionprotected String getNamespacePrefix()
protected abstract String getNamespaceUri()
protected QName getToName()
To addressing header.protected QName getFromName()
From addressing header.protected QName getReplyToName()
ReplyTo addressing header.protected QName getFaultToName()
FaultTo addressing header.protected QName getActionName()
Action addressing header.protected QName getMessageIdName()
MessageID addressing header.protected QName getRelatesToName()
RelatesTo addressing header.protected QName getRelationshipTypeName()
RelatesTo addressing header.protected QName getReferencePropertiesName()
ReferenceProperties in the endpoint reference. Returns
null when reference properties are not supported by this version of the spec.protected QName getReferenceParametersName()
ReferenceParameters in the endpoint reference. Returns
null when reference parameters are not supported by this version of the spec.protected QName getAddressName()
Address in EndpointReference.protected abstract URI getDefaultTo()
protected abstract EndpointReference getDefaultReplyTo(EndpointReference from)
protected abstract URI getAnonymous()
protected abstract URI getNone()
null if the spec does not define it.protected abstract QName getMessageAddressingHeaderRequiredFaultSubcode()
protected abstract String getMessageAddressingHeaderRequiredFaultReason()
protected abstract QName getInvalidAddressingHeaderFaultSubcode()
protected abstract String getInvalidAddressingHeaderFaultReason()