|
© 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 ServletRequest
public Enumeration getAttributeNames()
getAttributeNames
in interface ServletRequest
public String getAuthType()
getAuthType
in interface HttpServletRequest
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletRequest
public int getContentLength()
getContentLength
in interface ServletRequest
public String getContentType()
getContentType
in interface ServletRequest
public String getContextPath()
getContextPath
in interface HttpServletRequest
public Cookie[] getCookies()
getCookies
in interface HttpServletRequest
public long getDateHeader(String name)
getDateHeader
in interface HttpServletRequest
public String getHeader(String name)
getHeader
in interface HttpServletRequest
public Enumeration getHeaderNames()
getHeaderNames
in interface HttpServletRequest
public Enumeration getHeaders(String name)
getHeaders
in interface HttpServletRequest
public ServletInputStream getInputStream()
getInputStream
in interface ServletRequest
public int getIntHeader(String name)
getIntHeader
in interface HttpServletRequest
public Locale getLocale()
getLocale
in interface ServletRequest
public Enumeration getLocales()
getLocales
in interface ServletRequest
public String getMethod()
getMethod
in interface HttpServletRequest
public String getMethod(String name)
public Session getP13NSession()
public String getParameter(String name)
getParameter
in interface ServletRequest
public Map getParameterMap()
getParameterMap
in interface ServletRequest
public Enumeration getParameterNames()
getParameterNames
in interface ServletRequest
public String[] getParameterValues(String name)
getParameterValues
in interface ServletRequest
public String getPathInfo()
getPathInfo
in interface HttpServletRequest
public String getPathTranslated()
getPathTranslated
in interface HttpServletRequest
public Object getProperty(String propertySet, String propertyName)
getProperty
in interface ConfigurableEntity
getProperty
in class HttpConfigurableEntity
propertySet
- 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 ConfigurableEntity
getPropertyNoDefault
in class HttpConfigurableEntity
propertySet
- 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 ServletRequest
public String getQueryString()
getQueryString
in interface HttpServletRequest
public BufferedReader getReader()
getReader
in interface ServletRequest
public String getRealPath(String path)
getRealPath
in interface ServletRequest
public String getRemoteAddr()
getRemoteAddr
in interface ServletRequest
public String getRemoteHost()
getRemoteHost
in interface ServletRequest
public String getRemoteUser()
getRemoteUser
in interface HttpServletRequest
public RequestDispatcher getRequestDispatcher(String uri)
getRequestDispatcher
in interface ServletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface HttpServletRequest
public String getRequestURI()
getRequestURI
in interface HttpServletRequest
public StringBuffer getRequestURL()
getRequestURL
in interface HttpServletRequest
public String getScheme()
getScheme
in interface ServletRequest
public String getServerName()
getServerName
in interface ServletRequest
public int getServerPort()
getServerPort
in interface ServletRequest
public String getServletPath()
getServletPath
in interface HttpServletRequest
public HttpSession getSession()
getSession
in interface HttpServletRequest
public HttpSession getSession(boolean create)
getSession
in interface HttpServletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface HttpServletRequest
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface HttpServletRequest
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface HttpServletRequest
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface HttpServletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface HttpServletRequest
public boolean isSecure()
isSecure
in interface ServletRequest
public boolean isUserInRole(String role)
isUserInRole
in interface HttpServletRequest
public void removeAttribute(String name)
removeAttribute
in interface ServletRequest
public void setAttribute(String name, Object o)
setAttribute
in interface ServletRequest
public void setCharacterEncoding(String anEncoding)
setCharacterEncoding
in interface ServletRequest
public void setP13NSession(Session session)
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |