tomp.xtcl.servlet
Class ContextUtilFactory

java.lang.Object
  extended bytomp.xtcl.servlet.ContextUtilFactory

public class ContextUtilFactory
extends java.lang.Object


Field Summary
protected static java.lang.String XTCL_CONTEXT
           
protected static java.lang.String XTCL_CONTEXT_UTIL
           
 
Constructor Summary
ContextUtilFactory()
           
ContextUtilFactory(javax.servlet.ServletConfig cfg)
           
 
Method Summary
 Context getContext(javax.servlet.http.HttpSession ses)
           
 Context getContext(javax.servlet.ServletContext sc)
           
 ContextUtil getContextUtil(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns the ContextUtil from the current HttpServletRequest
protected  java.lang.String getRequestContextInitPg()
           
protected  java.lang.String getServletContextContextInitPg()
           
protected  java.lang.String getSessionContextInitPg()
           
 ContextUtil hasContextUtil(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns the ContextUtil from the current HttpServletRequest
protected  void init(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initializes Context for this HttpServletRequest
protected  void init(Context context, javax.servlet.http.HttpSession session)
          Initializes Context for this HttpSession
protected  void init(Context context, javax.servlet.ServletContext servletContext)
          Initializes Context for the whole application (servlet context)
protected  void init(ContextUtil cu, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initialize the ContextUtil to the Request
protected  ContextUtil newContextUtil()
          Constructs new instance of the desired implementation of the ContextUtil
protected  void postInit(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void preInit(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void putContext(Context c, javax.servlet.http.HttpSession ses)
           
 void putContext(Context c, javax.servlet.ServletContext sc)
           
 void putContextUtil(ContextUtil cu, javax.servlet.http.HttpServletRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XTCL_CONTEXT

protected static final java.lang.String XTCL_CONTEXT
See Also:
Constant Field Values

XTCL_CONTEXT_UTIL

protected static final java.lang.String XTCL_CONTEXT_UTIL
See Also:
Constant Field Values
Constructor Detail

ContextUtilFactory

public ContextUtilFactory()

ContextUtilFactory

public ContextUtilFactory(javax.servlet.ServletConfig cfg)
Method Detail

getRequestContextInitPg

protected java.lang.String getRequestContextInitPg()

getSessionContextInitPg

protected java.lang.String getSessionContextInitPg()

getServletContextContextInitPg

protected java.lang.String getServletContextContextInitPg()

init

protected void init(Context context,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
Initializes Context for this HttpServletRequest


preInit

protected void preInit(Context context,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)

postInit

protected void postInit(Context context,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)

init

protected void init(Context context,
                    javax.servlet.http.HttpSession session)
Initializes Context for this HttpSession


init

protected void init(Context context,
                    javax.servlet.ServletContext servletContext)
Initializes Context for the whole application (servlet context)


newContextUtil

protected ContextUtil newContextUtil()
Constructs new instance of the desired implementation of the ContextUtil


init

protected void init(ContextUtil cu,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.xml.parsers.ParserConfigurationException,
                    javax.xml.transform.TransformerConfigurationException
Initialize the ContextUtil to the Request

Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException

getContextUtil

public ContextUtil getContextUtil(javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws javax.xml.parsers.ParserConfigurationException,
                                  javax.xml.transform.TransformerConfigurationException
Returns the ContextUtil from the current HttpServletRequest

Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException

hasContextUtil

public ContextUtil hasContextUtil(javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws javax.xml.parsers.ParserConfigurationException,
                                  javax.xml.transform.TransformerConfigurationException
Returns the ContextUtil from the current HttpServletRequest

Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException

getContext

public Context getContext(javax.servlet.http.HttpSession ses)

getContext

public Context getContext(javax.servlet.ServletContext sc)

putContextUtil

public void putContextUtil(ContextUtil cu,
                           javax.servlet.http.HttpServletRequest req)

putContext

public void putContext(Context c,
                       javax.servlet.http.HttpSession ses)

putContext

public void putContext(Context c,
                       javax.servlet.ServletContext sc)