|
© 2005 BEA Systems, Inc. | |||||||||
| 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
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 AttributeLoaderMBean'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 String |
AUTHORIZATION_SCHEME
|
static String |
CHAR_ENCODING
|
static String |
CONTENT_LENGTH
|
static String |
CONTENT_TYPE
|
static String |
CONTEXT_PATH
|
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_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
|
| 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(HttpServletRequest request)
Creates a P13N HTTP Request. |
|
Request(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 AUTHORIZATION_SCHEME
public static final String CHAR_ENCODING
public static final String CONTENT_LENGTH
public static final String CONTENT_TYPE
public static final String CONTEXT_PATH
public static final String LOCALE
public static final String PATH_INFO
public static final String PATH_TRANSLATED
public static final String QUERY_STRING
public static final String REMOTE_ADDRESS
public static final String REMOTE_HOST
public static final String REMOTE_USER
public static final String REQUEST_METHOD
public static final String REQUEST_PROPERTY_SET_TYPE
public static final String REQUEST_PROTOCOL
public static final String REQUEST_URI
public static final String REQUEST_URL
public static final String SCHEME
public static final String SERVER_NAME
public static final String SERVER_PORT
public static final String SERVLET_PATH
| Constructor Detail |
public Request()
public Request(HttpServletRequest request)
public Request(HttpServletRequest request,
boolean createSession)
setP13NSession(com.bea.p13n.http.Session),
Session| Method Detail |
public static Request createP13NRequest(HttpServletRequest request)
throws IllegalArgumentException
request - the request used to create the Session object.
HttpServletRequest
IllegalArgumentException - If the paramater is null.public Object getAttribute(String name)
getAttribute in interface ServletRequestpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletRequestpublic String getAuthType()
getAuthType in interface HttpServletRequestpublic String getCharacterEncoding()
getCharacterEncoding in interface ServletRequestpublic int getContentLength()
getContentLength in interface ServletRequestpublic String getContentType()
getContentType in interface ServletRequestpublic String getContextPath()
getContextPath in interface HttpServletRequestpublic Cookie[] getCookies()
getCookies in interface HttpServletRequestpublic long getDateHeader(String name)
getDateHeader in interface HttpServletRequestpublic String getHeader(String name)
getHeader in interface HttpServletRequestpublic Enumeration getHeaderNames()
getHeaderNames in interface HttpServletRequestpublic Enumeration getHeaders(String name)
getHeaders in interface HttpServletRequestpublic ServletInputStream getInputStream()
getInputStream in interface ServletRequestpublic int getIntHeader(String name)
getIntHeader in interface HttpServletRequestpublic Locale getLocale()
getLocale in interface ServletRequestpublic Enumeration getLocales()
getLocales in interface ServletRequestpublic String getMethod()
getMethod in interface HttpServletRequestpublic String getMethod(String name)
public Session getP13NSession()
public String getParameter(String name)
getParameter in interface ServletRequestpublic Map getParameterMap()
getParameterMap in interface ServletRequestpublic Enumeration getParameterNames()
getParameterNames in interface ServletRequestpublic String[] getParameterValues(String name)
getParameterValues in interface ServletRequestpublic String getPathInfo()
getPathInfo in interface HttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface HttpServletRequest
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 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 String getProtocol()
getProtocol in interface ServletRequestpublic String getQueryString()
getQueryString in interface HttpServletRequestpublic BufferedReader getReader()
getReader in interface ServletRequestpublic String getRealPath(String path)
getRealPath in interface ServletRequestpublic String getRemoteAddr()
getRemoteAddr in interface ServletRequestpublic String getRemoteHost()
getRemoteHost in interface ServletRequestpublic String getRemoteUser()
getRemoteUser in interface HttpServletRequestpublic RequestDispatcher getRequestDispatcher(String uri)
getRequestDispatcher in interface ServletRequestpublic String getRequestedSessionId()
getRequestedSessionId in interface HttpServletRequestpublic String getRequestURI()
getRequestURI in interface HttpServletRequestpublic StringBuffer getRequestURL()
getRequestURL in interface HttpServletRequestpublic String getScheme()
getScheme in interface ServletRequestpublic String getServerName()
getServerName in interface ServletRequestpublic int getServerPort()
getServerPort in interface ServletRequestpublic String getServletPath()
getServletPath in interface HttpServletRequestpublic HttpSession getSession()
getSession in interface HttpServletRequestpublic HttpSession getSession(boolean create)
getSession in interface HttpServletRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface HttpServletRequestpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface HttpServletRequestpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface HttpServletRequestpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface HttpServletRequestpublic boolean isSecure()
isSecure in interface ServletRequestpublic boolean isUserInRole(String role)
isUserInRole in interface HttpServletRequestpublic void removeAttribute(String name)
removeAttribute in interface ServletRequest
public void setAttribute(String name,
Object o)
setAttribute in interface ServletRequestpublic void setCharacterEncoding(String anEncoding)
setCharacterEncoding in interface ServletRequestpublic void setP13NSession(Session session)
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||