com.ideo.sweetdevria.taglib.context
Class ContextManagerHelper

java.lang.Object
  extended by com.ideo.sweetdevria.taglib.context.ContextManagerHelper

public class ContextManagerHelper
extends java.lang.Object

This class helps you managing the context currently registered for the request

Author:
Julien Maupoux

Constructor Summary
ContextManagerHelper()
           
 
Method Summary
static boolean containsContext()
          Check if a context manager exists for this request and if he is not empty
static boolean containsContext(javax.servlet.ServletRequest request)
          Deprecated.  
static ContextManager getContext()
          Return a context manager, and create it if necessary
static ContextManager getContext(javax.servlet.ServletRequest request)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextManagerHelper

public ContextManagerHelper()
Method Detail

getContext

public static ContextManager getContext()
Return a context manager, and create it if necessary

Returns:
a context manager

containsContext

public static boolean containsContext()
Check if a context manager exists for this request and if he is not empty

Returns:
true if a context manager has already been created for this request, false otherwise

getContext

public static ContextManager getContext(javax.servlet.ServletRequest request)
Deprecated. 

Return a context manager to use for this request

Parameters:
request - the request processing the context
Returns:
a context manager ready to use (newly created of already existing in the request)

containsContext

public static boolean containsContext(javax.servlet.ServletRequest request)
Deprecated. 

Check if a context manager exists for this request

Parameters:
request - the request to check
Returns:
true if a context manager has already been created for this request, false otherwise


Copyright © 2010 Ideo Technologies. All Rights Reserved.