Class UuidMessageIdStrategy
java.lang.Object
org.springframework.ws.soap.addressing.messageid.UuidMessageIdStrategy
- All Implemented Interfaces:
MessageIdStrategy
Implementation of the
MessageIdStrategy interface that uses a UUID to generate a Message Id. The UUID
is prefixed by urn:uuid:.
Note that the UUID class is only available on Java 5 and above.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDuplicate(URI messageId) Returnsfalse.newMessageId(SoapMessage message) Returns a new WS-AddressingMessageIDfor the givenSoapMessage.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
UuidMessageIdStrategy
public UuidMessageIdStrategy()
-
-
Method Details
-
isDuplicate
Returnsfalse.- Specified by:
isDuplicatein interfaceMessageIdStrategy- Parameters:
messageId- the message id- Returns:
trueif a duplicate;falseotherwise
-
newMessageId
Description copied from interface:MessageIdStrategyReturns a new WS-AddressingMessageIDfor the givenSoapMessage.- Specified by:
newMessageIdin interfaceMessageIdStrategy- Parameters:
message- the message to create an id for- Returns:
- the new message id
-