com.sun.xml.ws.tx.coordinator
Class ContextFactory

java.lang.Object
  extended by com.sun.xml.ws.tx.coordinator.ContextFactory

public class ContextFactory
extends java.lang.Object

This class is an abstraction of the two kinds of CoordinationContexts defined in WS-Coordination 2004/10 member submission and 2006/03 OASIS.

Since:
1.0

Constructor Summary
ContextFactory()
           
 
Method Summary
static CoordinationContextInterface createContext(CreateCoordinationContextType contextRequest)
          Create a context from the incoming message
static CoordinationContextInterface createContext(java.lang.String coordType, long expires)
          Create a new CoordinationContextInterface of the appropriate type based on the coordination type namespace uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactory

public ContextFactory()
Method Detail

createContext

public static CoordinationContextInterface createContext(@NotNull
                                                         java.lang.String coordType,
                                                         long expires)
Create a new CoordinationContextInterface of the appropriate type based on the coordination type namespace uri.

Parameters:
coordType - the nsuri of the coordination type, either Constants.WSAT_2004_PROTOCOL or Constants.WSAT_OASIS_NSURI
expires - expiration timout in ms
Returns:
the CoordinationContextInterface

createContext

public static CoordinationContextInterface createContext(@NotNull
                                                         CreateCoordinationContextType contextRequest)
Create a context from the incoming message

Parameters:
contextRequest - request
Returns:
the coordination context