| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectContext
com.sun.portal.wireless.taglibs.util.UtilContext
Context class for tracking user state across multiple requests.
ContextCache, 
Serialized Form| Field Summary | |
| protected static java.lang.String | CONTEXT_CACHE_CLASS_NAMEThe util context cache class name. | 
| protected static java.lang.String | CONTEXT_CLASS_NAMEThe util context class name. | 
| protected static java.lang.String | CONTEXT_TYPEThe util context type. | 
| Constructor Summary | |
| UtilContext() | |
| Method Summary | |
|  java.lang.Object | getAttribute(java.lang.String name)Gets a context attribute. | 
|  java.lang.String | getClientAttribute(HttpServletRequest request,
                   java.lang.String serviceName,
                   java.lang.String attributeName)Gets a client-dependent profile attribute. | 
|  Compressor | getCompressor()Gets the compressor for this session. | 
| static UtilContext | getContext(PageContext pageContext)Gets a UtilContextfor this session. | 
|  java.lang.String | getCounterName()Gets the counter name bean property. | 
|  java.lang.String | getCounterString()Gets a cache-defeating counter. | 
|  java.lang.String | getEscapeClassName()Gets the class name of the Encoder used for EntityEscaping for this client type. | 
|  java.lang.String | getParmDelimiter()Gets the parameter delimiter bean property. | 
|  boolean | getRfc2396()Indicates whether or not RFC2396 style URL escaping should be applied when forming a URL parameter using the parmtag. | 
|  java.lang.String | getURL(PageContext pageContext,
       java.lang.String fileName,
       java.lang.String compName,
       java.lang.String parms)Gets a client-aware URL. | 
|  java.lang.String | getURL(java.lang.String path,
       java.lang.String parms)Gets a client-aware URL. | 
|  boolean | getUrlAmpEntity()Indicates whether or not the &character used
 to delimit parameters in a query string should be represented
 as a&or&. | 
|  void | init(HttpServletRequest request)Initializes a context when there is no session. | 
|  void | init(HttpServletRequest request,
     com.iplanet.sso.SSOToken session,
     SSOAdapter ssoAdapter)Initializes a context with the specified session. | 
|  void | removeAttribute(java.lang.String name)Removes the specified attribute from this context. | 
|  void | setAttribute(java.lang.String name,
             java.lang.Object value)Sets a context attribute with the specified name and value. | 
|  void | setCounterName(java.lang.String s)Sets the counter name bean property. | 
|  void | setEscapeClassName(java.lang.String escapeClassNameParam)Sets the class name of the Encoder used for EntityEscaping for this client type. | 
|  void | setParmDelimiter(java.lang.String s)Sets the parameter delimiter bean property. | 
|  void | setRfc2396(boolean b)Sets a booleanindicating whether or not RFC2396 style URL escaping
 should be applied when forming a URL parameter using theparmtag. | 
|  void | setUrlAmpEntity(boolean b)Sets a booleanindicating
 whether or not the&character used
 to delimit parameters in a query string should be represented
 as a&or&. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected static final java.lang.String CONTEXT_CLASS_NAME
protected static final java.lang.String CONTEXT_CACHE_CLASS_NAME
protected static final java.lang.String CONTEXT_TYPE
| Constructor Detail | 
public UtilContext()
| Method Detail | 
public void init(HttpServletRequest request)
          throws java.lang.Exception
request - the HTTP servlet request
java.lang.Exception
public void init(HttpServletRequest request,
                 com.iplanet.sso.SSOToken session,
                 SSOAdapter ssoAdapter)
          throws java.lang.Exception
request - the HTTP servlet requestsession - the specified sessionssoAdapter - the SSOAdapter
java.lang.Exception
public static UtilContext getContext(PageContext pageContext)
                              throws java.lang.Exception
UtilContext for this session.
 Note: UtilContext.getContext() will always
 try to return a UtilContext, even in the absence
 of a valid session.  This is necessary to enable
 minimal taglib functionality in the case
 of a session timeout.
pageContext - the page context
UtilContext for this session.
java.lang.Exceptionpublic java.lang.Object getAttribute(java.lang.String name)
name - the attribute name
Object.setAttribute(String,Object)
public void setAttribute(java.lang.String name,
                         java.lang.Object value)
name - the attribute namevalue - the attribute valuegetAttribute(String)public void removeAttribute(java.lang.String name)
name - the attribute namesetAttribute(String,Object)
public java.lang.String getURL(PageContext pageContext,
                               java.lang.String fileName,
                               java.lang.String compName,
                               java.lang.String parms)
pageContext - the page contextfileName - compName - parms - optional parameters, appended to the URL
StringgetURL(String,String)
public java.lang.String getURL(java.lang.String path,
                               java.lang.String parms)
path - the specified pathparms - optional parameters, appended to the URL
StringgetURL(PageContext,String,String,String)public Compressor getCompressor()
public java.lang.String getClientAttribute(HttpServletRequest request,
                                           java.lang.String serviceName,
                                           java.lang.String attributeName)
request - the HTTP servlet requestserviceName - the specified service nameattributeName - the specified attribute name
public java.lang.String getCounterString()
Stringpublic void setRfc2396(boolean b)
boolean indicating whether or not RFC2396 style URL escaping
 should be applied when forming a URL parameter using the
 parm tag.
b - true if so, false if notpublic boolean getRfc2396()
parm tag.
true if so, false if notsetRfc2396(boolean)public void setUrlAmpEntity(boolean b)
boolean indicating
 whether or not the & character used
 to delimit parameters in a query string should be represented
 as a & or &.
b - true if so, false if notpublic boolean getUrlAmpEntity()
& character used
 to delimit parameters in a query string should be represented
 as a & or &.
true if so, false if notpublic void setCounterName(java.lang.String s)
s - the new namegetCounterName()public java.lang.String getCounterName()
StringsetCounterName(String)public void setParmDelimiter(java.lang.String s)
s - the new parameter delimiter valuegetParmDelimiter()public java.lang.String getParmDelimiter()
StringsetParmDelimiter(String)public void setEscapeClassName(java.lang.String escapeClassNameParam)
escapeClassNameParam - a class that implements the
 com.sun.portal.desktop.encode.TypeEncode interface.public java.lang.String getEscapeClassName()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||