public class ServletRequestContext extends AbstractRequestContext implements RequestContext
RequestContext.Property, RequestContext.ScopeNOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Constructor and Description |
|---|
ServletRequestContext(Provider provider,
HttpServletRequest request,
ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(RequestContext.Scope scope,
java.lang.String name)
Get the named attribute from the specified scope
|
java.lang.String[] |
getAttributeNames(RequestContext.Scope scope)
Return the list of attribute names in the specified scope
|
java.lang.String |
getContextPath()
Return the web applications context path
|
java.util.Date |
getDateHeader(java.lang.String name)
Return the value of a Date header
|
java.lang.String |
getHeader(java.lang.String name)
Get the value of the specified header
|
java.lang.String[] |
getHeaderNames()
Return a listing of header names
|
java.lang.Object[] |
getHeaders(java.lang.String name)
Return multiple values for the specified header
|
java.io.InputStream |
getInputStream()
Get the InputStream containing the request entity
|
java.lang.String |
getParameter(java.lang.String name)
Get the specified request parameter
|
java.lang.String[] |
getParameterNames()
Return the listing of parameter names
|
java.util.List<java.lang.String> |
getParameters(java.lang.String name)
Return all the values for the specified parameter
|
java.util.Locale |
getPreferredLocale()
Get the client's preferred locale as specified in the request
|
java.util.Locale[] |
getPreferredLocales()
Get a listing of the client's preferred locales as specified in the
request.
|
java.lang.Object |
getProperty(RequestContext.Property property)
Get the specified system property
|
java.io.Reader |
getReader()
Get a Reader containing the request entity
|
HttpServletRequest |
getRequest() |
ServletContext |
getServletContext() |
HttpSession |
getSession() |
HttpSession |
getSession(boolean create) |
java.lang.String |
getTargetBasePath()
Returns the subset of the request URI that is the base of the target path
(e.g.
|
boolean |
isUserInRole(java.lang.String role)
Check to see if the authenticated user is in the specified role
|
RequestContext |
setAttribute(RequestContext.Scope scope,
java.lang.String name,
java.lang.Object value)
Set the named attribute in the specified scope.
|
absoluteUrlFor, getAbdera, getBaseUri, getDocument, getDocument, getDocument, getDocument, getMethod, getPrincipal, getProvider, getResolvedUri, getSubject, getTarget, getTargetPath, getUri, isAtom, setAttribute, urlForgetAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxStale, getMinFresh, isOnlyIfCached, setMaxAge, setMaxStale, setMinFresh, setNoCache, setNoStore, setNoTransform, setOnlyIfCachedgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsoluteUrlFor, getAbdera, getBaseUri, getDocument, getDocument, getDocument, getDocument, getMethod, getPrincipal, getProvider, getResolvedUri, getSubject, getTarget, getTargetPath, getUri, isAtom, setAttribute, urlForgetAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxStale, getMinFresh, isOnlyIfCachedgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformpublic ServletRequestContext(Provider provider, HttpServletRequest request, ServletContext servletContext)
public java.lang.Object getProperty(RequestContext.Property property)
RequestContextgetProperty in interface RequestContextpublic java.io.Reader getReader()
throws java.io.IOException
RequestContextgetReader in interface RequestContextjava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
RequestContextgetInputStream in interface RequestContextjava.io.IOExceptionpublic HttpServletRequest getRequest()
public ServletContext getServletContext()
public HttpSession getSession()
public HttpSession getSession(boolean create)
public RequestContext setAttribute(RequestContext.Scope scope, java.lang.String name, java.lang.Object value)
RequestContextsetAttribute in interface RequestContextpublic java.lang.Object getAttribute(RequestContext.Scope scope, java.lang.String name)
RequestContextgetAttribute in interface RequestContextpublic java.lang.String[] getAttributeNames(RequestContext.Scope scope)
RequestContextgetAttributeNames in interface RequestContextpublic java.lang.String getParameter(java.lang.String name)
RequestContextgetParameter in interface RequestContextpublic java.lang.String[] getParameterNames()
RequestContextgetParameterNames in interface RequestContextpublic java.util.List<java.lang.String> getParameters(java.lang.String name)
RequestContextgetParameters in interface RequestContextpublic java.util.Date getDateHeader(java.lang.String name)
MessagegetDateHeader in interface Messagepublic java.lang.String getHeader(java.lang.String name)
Messagepublic java.lang.String[] getHeaderNames()
MessagegetHeaderNames in interface Messagepublic java.lang.Object[] getHeaders(java.lang.String name)
MessagegetHeaders in interface Messagepublic boolean isUserInRole(java.lang.String role)
RequestContextisUserInRole in interface RequestContextpublic java.lang.String getContextPath()
RequestContextgetContextPath in interface RequestContextpublic java.util.Locale getPreferredLocale()
RequestContextgetPreferredLocale in interface RequestContextpublic java.util.Locale[] getPreferredLocales()
RequestContextgetPreferredLocales in interface RequestContextpublic java.lang.String getTargetBasePath()
RequestContextgetTargetBasePath in interface RequestContextCopyright © 2010 - 2020 Adobe. All Rights Reserved