|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.p13n.http.HttpConfigurableEntity
com.bea.p13n.http.Request
public class Request
The Personalization Server implementation of the Http Servlet Request interface.
This object is used by the Personalization Server to get properties on an Http Request in a format understandable to Personalization Core Services such as the RulesService.
This will use a DefaultRequestFilter to
filter out attributes. After loading the request attributes, this will
additionally call out to any AttributeLoaders
specified by the AttributeLoaderBean's RequestLoaders attribute.
| Nested Class Summary | |
|---|---|
static interface |
Request.AttributeLoader
An object which is capable of loading additional attributes into a Request. |
| Field Summary | |
|---|---|
static boolean |
ATTRIBUTE_OVERRIDE
Controls whether the getProperty and getPropertyNoDefault methods
check the HttpRequest attributes prior to the HttpRequest parameters. |
static String |
AUTHORIZATION_SCHEME
|
static String |
CHAR_ENCODING
|
static String |
CONTENT_LENGTH
|
static String |
CONTENT_TYPE
|
static String |
CONTEXT_PATH
|
static String |
LOCAL_ADDR
|
static String |
LOCAL_NAME
|
static String |
LOCAL_PORT
|
static String |
LOCALE
|
static String |
PATH_INFO
|
static String |
PATH_TRANSLATED
|
static String |
QUERY_STRING
|
static String |
REMOTE_ADDRESS
|
static String |
REMOTE_HOST
|
static String |
REMOTE_PORT
|
static String |
REMOTE_USER
|
static String |
REQUEST_METHOD
|
static String |
REQUEST_PROPERTY_SET_TYPE
request property set type |
static String |
REQUEST_PROTOCOL
|
static String |
REQUEST_URI
|
static String |
REQUEST_URL
|
static String |
SCHEME
|
static String |
SERVER_NAME
|
static String |
SERVER_PORT
|
static String |
SERVLET_PATH
|
static String |
USER_PRINCIPAL
|
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Fields inherited from interface com.bea.p13n.property.ConfigurableEntity |
|---|
RESERVED_PROPERTY_SET |
| Constructor Summary | |
|---|---|
Request()
Default Constructor |
|
Request(javax.servlet.http.HttpServletRequest request)
Creates a P13N HTTP Request. |
|
Request(javax.servlet.http.HttpServletRequest request,
boolean createSession)
Creates a P13N HTTP Request and, possibly, Session. |
|
| Methods inherited from class com.bea.p13n.http.HttpConfigurableEntity |
|---|
getJndiName, getPkString, getProperty, getPropertyAsString, getPropertyDefault, getPropertySetManager, getUniqueId, removeProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REQUEST_PROPERTY_SET_TYPE
public static final String REQUEST_METHOD
public static final String REQUEST_URI
public static final String REQUEST_URL
public static final String REQUEST_PROTOCOL
public static final String SERVLET_PATH
public static final String PATH_INFO
public static final String PATH_TRANSLATED
public static final String CONTEXT_PATH
public static final String QUERY_STRING
public static final String CONTENT_LENGTH
public static final String CONTENT_TYPE
public static final String SERVER_NAME
public static final String SERVER_PORT
public static final String REMOTE_USER
public static final String REMOTE_ADDRESS
public static final String REMOTE_HOST
public static final String REMOTE_PORT
public static final String LOCAL_NAME
public static final String LOCAL_ADDR
public static final String LOCAL_PORT
public static final String SCHEME
public static final String AUTHORIZATION_SCHEME
public static final String LOCALE
public static final String CHAR_ENCODING
public static final String USER_PRINCIPAL
public static final boolean ATTRIBUTE_OVERRIDE
getProperty and getPropertyNoDefault methods
check the HttpRequest attributes prior to the HttpRequest parameters. By default,
the parameters are checked first. To override the default set the system property
com.bea.p13n.http.Request.AttributeOverride=Yes
| Constructor Detail |
|---|
public Request()
public Request(javax.servlet.http.HttpServletRequest request)
request - the HttpServletRequest used to set and
retrieve properties.
public Request(javax.servlet.http.HttpServletRequest request,
boolean createSession)
request - the HttpServletRequest used to set and
retrieve properties.createSession - true to also create a Session from
the request's session and set it on this.setP13NSession(com.bea.p13n.http.Session),
Session| Method Detail |
|---|
public static Request createP13NRequest(javax.servlet.http.HttpServletRequest request)
throws IllegalArgumentException
request - the request used to create the Session object.
HttpServletRequest
IllegalArgumentException - If the paramater is null.public void setP13NSession(Session session)
public Session getP13NSession()
public void setPrincipal(javax.servlet.http.HttpServletRequest request)
public Object getPropertyNoDefault(String propertySet,
String propertyName)
getPropertyNoDefault in interface ConfigurableEntitygetPropertyNoDefault in class HttpConfigurableEntitypropertySet - The name of the property set for which the property is
sought. This only used if no property is found in the request
and we use the scope to look up the default value in the property set for the
request. This parameter can be null.propertyName - The property name
public Object getProperty(String propertySet,
String propertyName)
getProperty in interface ConfigurableEntitygetProperty in class HttpConfigurableEntitypropertySet - The name of the property set for which the property is
sought. This only used if no property is found in the request
and we use the scope to look up the default value in the property set for the
request. This parameter can be null.propertyName - The property name
getPropertyNoDefault(java.lang.String, java.lang.String)public String getMethod(String name)
public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestpublic Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic String getCharacterEncoding()
getCharacterEncoding in interface javax.servlet.ServletRequestpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestpublic String getContentType()
getContentType in interface javax.servlet.ServletRequestpublic javax.servlet.ServletInputStream getInputStream()
getInputStream in interface javax.servlet.ServletRequestpublic String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestpublic Enumeration getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestpublic String[] getParameterValues(String name)
getParameterValues in interface javax.servlet.ServletRequestpublic String getProtocol()
getProtocol in interface javax.servlet.ServletRequestpublic String getScheme()
getScheme in interface javax.servlet.ServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic BufferedReader getReader()
getReader in interface javax.servlet.ServletRequestpublic String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestpublic String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic int getRemotePort()
getRemotePort in interface javax.servlet.ServletRequestpublic String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic String getLocalAddr()
getLocalAddr in interface javax.servlet.ServletRequestpublic int getLocalPort()
getLocalPort in interface javax.servlet.ServletRequest
public void setAttribute(String name,
Object o)
setAttribute in interface javax.servlet.ServletRequestpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.ServletRequestpublic Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic Enumeration getLocales()
getLocales in interface javax.servlet.ServletRequestpublic boolean isSecure()
isSecure in interface javax.servlet.ServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(String uri)
getRequestDispatcher in interface javax.servlet.ServletRequestpublic String getRealPath(String path)
getRealPath in interface javax.servlet.ServletRequestpublic String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.Cookie[] getCookies()
getCookies in interface javax.servlet.http.HttpServletRequestpublic long getDateHeader(String name)
getDateHeader in interface javax.servlet.http.HttpServletRequestpublic String getHeader(String name)
getHeader in interface javax.servlet.http.HttpServletRequestpublic Enumeration getHeaders(String name)
getHeaders in interface javax.servlet.http.HttpServletRequestpublic Enumeration getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequestpublic int getIntHeader(String name)
getIntHeader in interface javax.servlet.http.HttpServletRequestpublic String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequestpublic String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequestpublic String getContextPath()
getContextPath in interface javax.servlet.http.HttpServletRequestpublic String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestpublic boolean isUserInRole(String role)
isUserInRole in interface javax.servlet.http.HttpServletRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequestpublic String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestpublic String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequestpublic String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestpublic Map getParameterMap()
getParameterMap in interface javax.servlet.ServletRequestpublic void setCharacterEncoding(String anEncoding)
setCharacterEncoding in interface javax.servlet.ServletRequestpublic StringBuffer getRequestURL()
getRequestURL in interface javax.servlet.http.HttpServletRequest
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||