Interface AddressingVersion
- All Known Implementing Classes:
AbstractAddressingVersion
,Addressing10
,Addressing200408
public interface AddressingVersion
Defines the contract for a specific version of the WS-Addressing specification.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma, Leandro Quiroga
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddressingHeaders
(SoapMessage message, MessageAddressingProperties map) Adds addressing SOAP headers to the given message, using the givenMessageAddressingProperties
.Adds a Invalid Addressing Header fault to the given message.Adds a Message Addressing Header Required fault to the given message.Returns theMessageAddressingProperties
for the given message.boolean
Indicates whether the given endpoint reference has a Anonymous address.boolean
Indicates whether the given endpoint reference has a None address.boolean
Indicates whether the givenMessageAddressingProperties
has all required properties.boolean
Indicates whether the wsa:To header is REQUIRED or not.boolean
understands
(SoapHeaderElement headerElement) Given aSoapHeaderElement
, return whether or not this version understands it.
-
Method Details
-
getMessageAddressingProperties
Returns theMessageAddressingProperties
for the given message.- Parameters:
message
- the message to find the map for- Returns:
- the message addressing properties
- See Also:
-
addAddressingHeaders
Adds addressing SOAP headers to the given message, using the givenMessageAddressingProperties
.- Parameters:
message
- the message to add the headers tomap
- the message addressing properties
-
understands
Given aSoapHeaderElement
, return whether or not this version understands it.- Parameters:
headerElement
- the header- Returns:
true
if understood,false
otherwise
-
hasRequiredProperties
Indicates whether the givenMessageAddressingProperties
has all required properties.- Returns:
true
if the to and action properties have been set, and - if a reply or fault endpoint has been set - also checks for the message id
-
isToHeaderRequired
boolean isToHeaderRequired()Indicates whether the wsa:To header is REQUIRED or not.- Returns:
true
if the wsa:To header of theAddressingVersion
is REQUIRED.- Since:
- 4.0
-
hasAnonymousAddress
Indicates whether the given endpoint reference has a Anonymous address. This address is used to indicate that a message should be sent in-band.- See Also:
-
hasNoneAddress
Indicates whether the given endpoint reference has a None address. Messages to be sent to this address will not be sent.- See Also:
-
addInvalidAddressingHeaderFault
Adds a Invalid Addressing Header fault to the given message.- See Also:
-
addMessageAddressingHeaderRequiredFault
Adds a Message Addressing Header Required fault to the given message.- See Also:
-