|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestContext
This is the interface used to access various attributes for rules.
For http contexts, it provides access to the HttpRequest and HttpSession attributes. For non-http contexts, it provides the same interface to a surrogate for the request and session.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
boolean |
addCookie(javax.servlet.http.Cookie cookie)
Sets a cookie. |
java.lang.Object |
clone()
|
java.lang.Object |
get(java.lang.String key)
Get a value from the context. |
java.lang.Object |
getApplicationObject(java.lang.String key,
java.lang.String className)
Get the Application Object of the specified key. |
java.lang.String |
getAuthenticatedUsername()
Returns the username of the Authenticated User. |
java.lang.String |
getContextPath()
Used to get contextPath name from the HttpContext or surrogate. |
javax.servlet.http.Cookie |
getCookie(java.lang.String cookieName)
Returns the value of a particular cookie, or null if none exist. |
javax.servlet.http.Cookie[] |
getCookies()
Returns the array of cookies known to the request, or null if none exist. |
java.util.Locale |
getLocale()
Used to get locale from the HttpContext or surrogate. |
java.lang.Object |
getPortletAttribute(java.lang.String itemName)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists |
java.lang.Object |
getPortletSetting(java.lang.String itemName)
Returns the value of the named setting as an Object, or null if no attribute of the given name exists. |
Resource |
getPreviewUserResource(java.lang.String resourceCollectionPath)
Returns the user Resource instance when in preview mode |
PznRequestObjectInterface |
getPznRequestObjectInterface()
Returns the PznRequestObjectInterface |
java.lang.String |
getRemoteHost()
Returns the hostName (IP address if hostName cannot be determined) of the server requesting the jsp or servlet containing the rule request |
java.lang.String |
getRemoteUser()
Used to get remoteUser name from the HttpContext or surrogate. |
java.lang.Object |
getRequestAttribute(java.lang.String itemName)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists |
java.util.Date |
getRequestDate()
Returns the date of the request. |
java.lang.String |
getRequestInfo()
|
java.lang.String |
getRequestParameter(java.lang.String itemName)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
java.lang.String[] |
getRequestParameterValues(java.lang.String itemName)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
java.lang.String |
getRequestUsername()
Returns the username that personalization will use. |
com.ibm.websphere.personalization.resources.ResourceContext |
getResourceContext()
Deprecated. |
java.lang.String |
getServerName()
Returns the hostName (IP address if hostName cannot be determined) of the server processing the rule request |
java.lang.Object |
getSessionAttribute(java.lang.String itemName)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists |
java.lang.String |
getSessionInfo()
|
java.lang.String |
getTranslatedUsername(java.lang.String collectionName)
Returns the username that personalization will use for the specified collection. |
boolean |
isPreviewMode()
Returns true if this is a preview execution context |
void |
removePortletAttribute(java.lang.String itemName)
Remove the value of the named attribute as an Object |
void |
removeRequestAttribute(java.lang.String itemName)
Remove the value of the named attribute as an Object |
void |
removeSessionAttribute(java.lang.String itemName)
Remove the value of the named attribute |
boolean |
setContextPath(java.lang.String contextPath)
Used to set the application contextPath in the HttpContext surrogate. |
boolean |
setLocale(java.util.Locale locale)
Used to set locale in the HttpContext surrogate. |
boolean |
setPortletAttribute(java.lang.String itemName,
java.lang.Object itemValue)
Set the value of the named attribute as an Object |
boolean |
setRemoteUser(java.lang.String userName)
Used to set remoteUser name in the HttpContext surrogate. |
void |
setRequestAttribute(java.lang.String itemName,
java.lang.Object itemValue)
Set the value of the named attribute as an Object |
boolean |
setRequestParameter(java.lang.String itemName,
java.lang.String itemValue)
Sets the value of a request parameter. |
boolean |
setRequestParameterValues(java.lang.String itemName,
java.lang.String[] itemValues)
Sets the value of a request parameter. |
void |
setRequestUsername(java.lang.String name)
Set the username that personalization will use for the duration of this request. |
void |
setResourceContext(com.ibm.websphere.personalization.resources.ResourceContext resContext)
Deprecated. |
boolean |
setSessionAttribute(java.lang.String itemName,
java.lang.Object itemValue)
Set the value of the named attribute. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
java.lang.Object getRequestAttribute(java.lang.String itemName)
void setRequestAttribute(java.lang.String itemName, java.lang.Object itemValue)
void removeRequestAttribute(java.lang.String itemName)
java.lang.Object getPortletAttribute(java.lang.String itemName)
boolean setPortletAttribute(java.lang.String itemName, java.lang.Object itemValue)
void removePortletAttribute(java.lang.String itemName)
java.lang.Object getPortletSetting(java.lang.String itemName)
java.lang.String getRemoteHost()
java.lang.String getServerName()
java.lang.String getRequestParameter(java.lang.String itemName)
java.lang.String getRequestInfo()
java.lang.String getSessionInfo()
boolean setRequestParameter(java.lang.String itemName, java.lang.String itemValue)
java.lang.String[] getRequestParameterValues(java.lang.String itemName)
boolean setRequestParameterValues(java.lang.String itemName, java.lang.String[] itemValues)
java.lang.Object getSessionAttribute(java.lang.String itemName)
boolean setSessionAttribute(java.lang.String itemName, java.lang.Object itemValue)
void removeSessionAttribute(java.lang.String itemName)
java.lang.String getRemoteUser()
boolean setRemoteUser(java.lang.String userName)
java.util.Locale getLocale()
boolean setLocale(java.util.Locale locale)
java.lang.String getContextPath()
boolean setContextPath(java.lang.String contextPath)
javax.servlet.http.Cookie[] getCookies()
javax.servlet.http.Cookie getCookie(java.lang.String cookieName)
boolean addCookie(javax.servlet.http.Cookie cookie)
java.util.Date getRequestDate()
com.ibm.websphere.personalization.resources.ResourceContext getResourceContext()
void setResourceContext(com.ibm.websphere.personalization.resources.ResourceContext resContext)
java.lang.String getAuthenticatedUsername()
java.lang.String getRequestUsername()
void setRequestUsername(java.lang.String name)
java.lang.String getTranslatedUsername(java.lang.String collectionName)
java.lang.Object get(java.lang.String key)
key
- java.lang.String
java.lang.Object getApplicationObject(java.lang.String key, java.lang.String className)
key
- The key to use to find the Application Object in the request
or sessionclassName
- The class of the Application Object, used to instantiate
the object if it is not found on the context
boolean isPreviewMode()
Resource getPreviewUserResource(java.lang.String resourceCollectionPath)
PznRequestObjectInterface getPznRequestObjectInterface()
java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |