org.jaffa.security
Class VariationContext
java.lang.Object
   org.jaffa.security.VariationContext
org.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
 
 
| 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 | 
 
DEFAULT_VARIATION
public static final String DEFAULT_VARIATION
- This is the default variation.
 
- See Also:
- Constant Field Values
 
VariationContext
public VariationContext()
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.