com.softwareag.mdm.adaptation.http
Class ServletUtils

java.lang.Object
  extended bycom.softwareag.mdm.adaptation.http.ServletUtils

public class ServletUtils
extends Object

Provides registry functions needed by webMethods MDM JSP tags.


Field Summary
static String DEFAULT_CONTEXT_KEY
           
 
Constructor Summary
ServletUtils()
           
 
Method Summary
static ReadContext findContextFromPageContext(PageContext aPageContext)
          Returns the context that has been registered in HttpSession.
static ReadContext findContextFromSession(HttpServletRequest request)
          Returns the context that has been registered in HttpSession.
static ReadContext findContextFromSession(HttpSession session)
          Returns the context that has been registered in HttpSession.
static void registerContextToPageContext(ReadContext aReadContext, PageContext aPageContext)
          Registers the context specified to session scope of PageContext.
static void registerContextToSession(ReadContext aReadContext, HttpSession aSession)
          Registers the context specified to HTTP session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT_KEY

public static final String DEFAULT_CONTEXT_KEY
See Also:
Constant Field Values
Constructor Detail

ServletUtils

public ServletUtils()
Method Detail

findContextFromPageContext

public static ReadContext findContextFromPageContext(PageContext aPageContext)
Returns the context that has been registered in HttpSession.

Returns null if it has not yet been registered.


findContextFromSession

public static ReadContext findContextFromSession(HttpServletRequest request)
Returns the context that has been registered in HttpSession.

Returns null if it has not yet been registered.


findContextFromSession

public static ReadContext findContextFromSession(HttpSession session)
Returns the context that has been registered in HttpSession.

Returns null if it has not yet been registered.

Parameters:
session - a not null HttpSession in which the context has been previously registered.

registerContextToPageContext

public static void registerContextToPageContext(ReadContext aReadContext,
                                                PageContext aPageContext)
Registers the context specified to session scope of PageContext.


registerContextToSession

public static void registerContextToSession(ReadContext aReadContext,
                                            HttpSession aSession)
Registers the context specified to HTTP session.



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.