|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestContext
The RequestContext provides access to every detail of the Request.
Nested Class Summary | |
---|---|
static class |
RequestContext.Property
Special properties provided by the server |
static class |
RequestContext.Scope
RequestContext attributes can either have Session or Request scope. |
Field Summary |
---|
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
Method Summary | ||
---|---|---|
String |
absoluteUrlFor(Object key,
Object param)
Construct an absolute URL using the Provider's Target Builder. |
|
Abdera |
getAbdera()
Get the Abdera instance associated with this request |
|
Object |
getAttribute(RequestContext.Scope scope,
String name)
Get the named attribute from the specified scope |
|
String[] |
getAttributeNames(RequestContext.Scope scope)
Return the list of attribute names in the specified scope |
|
IRI |
getBaseUri()
Get the absolute base URI ... this is the request URI up to the Context Path of the web application within which the Abdera Servlet is deployed |
|
String |
getContextPath()
Return the web applications context path |
|
|
getDocument()
Use the Abdera Parser to parse the request entity as an XML document |
|
|
getDocument(Parser parser)
Use the Abdera Parser to parse the request entity as an XML document |
|
|
getDocument(ParserOptions options)
Use the Abdera Parser to parse the request entity as an XML document |
|
|
getDocument(Parser parser,
ParserOptions options)
Use the Abdera Parser to parse the request entity as an XML document |
|
InputStream |
getInputStream()
Get the InputStream containing the request entity |
|
String |
getMethod()
Get the HTTP method |
|
String |
getParameter(String name)
Get the specified request parameter |
|
String[] |
getParameterNames()
Return the listing of parameter names |
|
List<String> |
getParameters(String name)
Return all the values for the specified parameter |
|
Locale |
getPreferredLocale()
Get the client's preferred locale as specified in the request |
|
Locale[] |
getPreferredLocales()
Get a listing of the client's preferred locales as specified in the request. |
|
Principal |
getPrincipal()
Get this requests authenticated Principal object |
|
Object |
getProperty(RequestContext.Property property)
Get the specified system property |
|
Provider |
getProvider()
Get the Provider associated with this request |
|
Reader |
getReader()
Get a Reader containing the request entity |
|
IRI |
getResolvedUri()
Get the absolute request URI (includes server name, port, etc) |
|
Subject |
getSubject()
Get this requests resolved Subject |
|
Target |
getTarget()
Get this requests resolved Target |
|
String |
getTargetBasePath()
Returns the subset of the request URI that is the base of the target path (e.g. |
|
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(String role)
Check to see if the authenticated user is in the specified role |
|
RequestContext |
setAttribute(RequestContext.Scope scope,
String name,
Object value)
Set the named attribute in the specified scope. |
|
RequestContext |
setAttribute(String name,
Object value)
Set the named attribute in the request scope |
|
String |
urlFor(Object key,
Object param)
Construct a URL using the Provider's Target Builder |
Methods inherited from interface org.apache.abdera.protocol.Request |
---|
getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxStale, getMinFresh, isOnlyIfCached |
Methods inherited from interface org.apache.abdera.protocol.Message |
---|
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform |
Method Detail |
---|
Abdera getAbdera()
Provider getProvider()
Target getTarget()
Subject getSubject()
Principal getPrincipal()
Locale getPreferredLocale()
Locale[] getPreferredLocales()
String getMethod()
IRI getUri()
IRI getResolvedUri()
IRI getBaseUri()
Object getProperty(RequestContext.Property property)
String getParameter(String name)
String[] getParameterNames()
List<String> getParameters(String name)
Object getAttribute(RequestContext.Scope scope, String name)
String[] getAttributeNames(RequestContext.Scope scope)
RequestContext setAttribute(String name, Object value)
RequestContext setAttribute(RequestContext.Scope scope, String name, Object value)
InputStream getInputStream() throws IOException
IOException
Reader getReader() throws IOException
IOException
<T extends Element> Document<T> getDocument() throws ParseException, IOException
ParseException
IOException
<T extends Element> Document<T> getDocument(Parser parser) throws ParseException, IOException
ParseException
IOException
<T extends Element> Document<T> getDocument(Parser parser, ParserOptions options) throws ParseException, IOException
ParseException
IOException
<T extends Element> Document<T> getDocument(ParserOptions options) throws ParseException, IOException
ParseException
IOException
boolean isUserInRole(String role)
String getContextPath()
String getTargetPath()
String getTargetBasePath()
String urlFor(Object key, Object param)
String absoluteUrlFor(Object key, Object param)
boolean isAtom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |