public class UuidMessageIdStrategy extends Object implements MessageIdStrategy
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.
| Constructor and Description |
|---|
UuidMessageIdStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDuplicate(URI messageId)
Returns
false. |
URI |
newMessageId(SoapMessage message)
Returns a new WS-Addressing
MessageID for the given SoapMessage. |
public static final String PREFIX
public boolean isDuplicate(URI messageId)
false.isDuplicate in interface MessageIdStrategymessageId - the message idtrue if a duplicate; false otherwisepublic URI newMessageId(SoapMessage message)
MessageIdStrategyMessageID for the given SoapMessage.newMessageId in interface MessageIdStrategymessage - the message to create an id for