|
|||||||||
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 FormField Summary | |
protected static java.lang.String |
CONTEXT_CACHE_CLASS_NAME
The util context cache class name. |
protected static java.lang.String |
CONTEXT_CLASS_NAME
The util context class name. |
protected static java.lang.String |
CONTEXT_TYPE
The 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 UtilContext for 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 parm tag. |
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 boolean indicating whether or not RFC2396 style URL escaping
should be applied when forming a URL parameter using the
parm tag. |
void |
setUrlAmpEntity(boolean b)
Sets a boolean indicating
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.Exception
public 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
String
getURL(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
String
getURL(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()
String
public 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()
String
setCounterName(String)
public void setParmDelimiter(java.lang.String s)
s
- the new parameter delimiter valuegetParmDelimiter()
public java.lang.String getParmDelimiter()
String
setParmDelimiter(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 |