org.springframework.ws.soap.addressing.messageid
Class UuidMessageIdStrategy
java.lang.Object
org.springframework.ws.soap.addressing.messageid.UuidMessageIdStrategy
- All Implemented Interfaces:
- MessageIdStrategy
public class UuidMessageIdStrategy
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
UuidMessageIdStrategy
public UuidMessageIdStrategy()
isDuplicate
public boolean isDuplicate(URI messageId)
- Returns
false
.
- Specified by:
isDuplicate
in interface MessageIdStrategy
- Parameters:
messageId
- the message id
- Returns:
true
if a duplicate; false
otherwise
newMessageId
public URI newMessageId(SoapMessage message)
- Description copied from interface:
MessageIdStrategy
- Returns a new WS-Addressing
MessageID
for the given SoapMessage
.
- Specified by:
newMessageId
in interface MessageIdStrategy
- Parameters:
message
- the message to create an id for
- Returns:
- the new message id
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.