public interface RequestContext extends Request
| Modifier and Type | Interface and Description |
|---|---|
static class |
RequestContext.Property
Special properties provided by the server
|
static class |
RequestContext.Scope
RequestContext attributes can either have Session or Request scope.
|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
absoluteUrlFor(java.lang.Object key,
java.lang.Object param)
Construct an absolute URL using the Provider's Target Builder.
|
Abdera |
getAbdera()
Get the Abdera instance associated with this request
|
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
|
IRI |
getBaseUri()
Get the absolute base URI ...
|
java.lang.String |
getContextPath()
Return the web applications context path
|
<T extends Element> |
getDocument()
Use the Abdera Parser to parse the request entity as an XML document
|
<T extends Element> |
getDocument(org.apache.abdera.parser.Parser parser)
Use the Abdera Parser to parse the request entity as an XML document
|
<T extends Element> |
getDocument(org.apache.abdera.parser.ParserOptions options)
Use the Abdera Parser to parse the request entity as an XML document
|
<T extends Element> |
getDocument(org.apache.abdera.parser.Parser parser,
org.apache.abdera.parser.ParserOptions options)
Use the Abdera Parser to parse the request entity as an XML document
|
java.io.InputStream |
getInputStream()
Get the InputStream containing the request entity
|
java.lang.String |
getMethod()
Get the HTTP method
|
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.security.Principal |
getPrincipal()
Get this requests authenticated Principal object
|
java.lang.Object |
getProperty(RequestContext.Property property)
Get the specified system property
|
Provider |
getProvider()
Get the Provider associated with this request
|
java.io.Reader |
getReader()
Get a Reader containing the request entity
|
IRI |
getResolvedUri()
Get the absolute request URI (includes server name, port, etc)
|
javax.security.auth.Subject |
getSubject()
Get this requests resolved Subject
|
Target |
getTarget()
Get this requests resolved Target
|
java.lang.String |
getTargetBasePath()
Returns the subset of the request URI that is the base of the target path
(e.g.
|
java.lang.String |
getTargetPath()
Returns the subset of the request URI that is to be used to resolve the Target
(everything after the context path)
|
IRI |
getUri()
Get the request URI
|
boolean |
isAtom() |
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.
|
RequestContext |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the named attribute in the request scope
|
java.lang.String |
urlFor(java.lang.Object key,
java.lang.Object param)
Construct a URL using the Provider's Target Builder
|
getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxStale, getMinFresh, isOnlyIfCachedgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformAbdera getAbdera()
Provider getProvider()
Target getTarget()
javax.security.auth.Subject getSubject()
java.security.Principal getPrincipal()
java.util.Locale getPreferredLocale()
java.util.Locale[] getPreferredLocales()
java.lang.String getMethod()
IRI getUri()
IRI getResolvedUri()
IRI getBaseUri()
java.lang.Object getProperty(RequestContext.Property property)
java.lang.String getParameter(java.lang.String name)
java.lang.String[] getParameterNames()
java.util.List<java.lang.String> getParameters(java.lang.String name)
java.lang.Object getAttribute(RequestContext.Scope scope, java.lang.String name)
java.lang.String[] getAttributeNames(RequestContext.Scope scope)
RequestContext setAttribute(java.lang.String name, java.lang.Object value)
RequestContext setAttribute(RequestContext.Scope scope, java.lang.String name, java.lang.Object value)
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionjava.io.Reader getReader()
throws java.io.IOException
java.io.IOException<T extends Element> Document<T> getDocument() throws org.apache.abdera.parser.ParseException, java.io.IOException
org.apache.abdera.parser.ParseExceptionjava.io.IOException<T extends Element> Document<T> getDocument(org.apache.abdera.parser.Parser parser) throws org.apache.abdera.parser.ParseException, java.io.IOException
org.apache.abdera.parser.ParseExceptionjava.io.IOException<T extends Element> Document<T> getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException, java.io.IOException
org.apache.abdera.parser.ParseExceptionjava.io.IOException<T extends Element> Document<T> getDocument(org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException, java.io.IOException
org.apache.abdera.parser.ParseExceptionjava.io.IOExceptionboolean isUserInRole(java.lang.String role)
java.lang.String getContextPath()
java.lang.String getTargetPath()
java.lang.String getTargetBasePath()
java.lang.String urlFor(java.lang.Object key,
java.lang.Object param)
java.lang.String absoluteUrlFor(java.lang.Object key,
java.lang.Object param)
boolean isAtom()
Copyright © 2010 - 2019 Adobe. All Rights Reserved