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 MessageIdStrategy
messageId
- the message idtrue
if a duplicate; false
otherwisepublic URI newMessageId(SoapMessage message)
MessageIdStrategy
MessageID
for the given SoapMessage
.newMessageId
in interface MessageIdStrategy
message
- the message to create an id forCopyright © 2020 Pivotal Software. All rights reserved.