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
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddressingHeaders(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 theMessageAddressingPropertiesfor the given message.booleanIndicates whether the given endpoint reference has a Anonymous address.booleanIndicates whether the given endpoint reference has a None address.booleanIndicates whether the givenMessageAddressingPropertieshas all required properties.booleanIndicates whether the wsa:To header is REQUIRED or not.booleanunderstands(SoapHeaderElement headerElement) Given aSoapHeaderElement, return whether or not this version understands it.
-
Method Details
-
getMessageAddressingProperties
Returns theMessageAddressingPropertiesfor 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:
trueif understood,falseotherwise
-
hasRequiredProperties
Indicates whether the givenMessageAddressingPropertieshas all required properties.- Returns:
trueif 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:
trueif the wsa:To header of theAddressingVersionis 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:
-