org.jaffa.security
Class VariationContext

java.lang.Object
  extended byorg.jaffa.security.VariationContext

public class VariationContext
extends Object

This class has a ThreadLocal variable to store the variation for a given Thread. It should be invoked by the controller servlet or the WebServices wrapper.

Author:
GautamJ

Field Summary
static String DEFAULT_VARIATION
          This is the default variation.
 
Constructor Summary
VariationContext()
           
 
Method Summary
static String getVariation()
          This will return the variation for the current thread.
static void setVariation(String variation)
          This will set the variation for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VARIATION

public static final String DEFAULT_VARIATION
This is the default variation.

See Also:
Constant Field Values
Constructor Detail

VariationContext

public VariationContext()
Method Detail

setVariation

public static void setVariation(String variation)
This will set the variation for the current thread. This is typically invoked by the controller servlet or the WebServices wrapper.

Parameters:
variation - The variation for the current thread.

getVariation

public static String getVariation()
This will return the variation for the current thread. The default variation will be returned, in case no value was set prior to the invocation of this method.

Returns:
the variation for the current thread.


Copyright © 2002-2004 JAFFA Project.