org.jets3t.servlets.gatekeeper.impl
Class ExternalUuidProvider

java.lang.Object
  extended by org.jets3t.servlets.gatekeeper.TransactionIdProvider
      extended by org.jets3t.servlets.gatekeeper.impl.ExternalUuidProvider

public class ExternalUuidProvider
extends TransactionIdProvider

Uses an externally provided UUID obtained from an application property externalUUID when this is available. If not, a random-based UUID is created.


Constructor Summary
ExternalUuidProvider(javax.servlet.ServletConfig servletConfig)
           
 
Method Summary
 java.lang.String getTransactionId(GatekeeperMessage requestMessage, ClientInformation clientInformation)
          If the application property externalUUID is available, the value of this property is returned as the transaction ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalUuidProvider

public ExternalUuidProvider(javax.servlet.ServletConfig servletConfig)
                     throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException
Method Detail

getTransactionId

public java.lang.String getTransactionId(GatekeeperMessage requestMessage,
                                         ClientInformation clientInformation)
If the application property externalUUID is available, the value of this property is returned as the transaction ID. If the property is not availble a new random-based UUID is generated using the JUG library.

Specified by:
getTransactionId in class TransactionIdProvider
Returns:
an ID unique to this transaction.