|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.protocol.server.context.RequestContextWrapper
public class RequestContextWrapper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.RequestContext |
|---|
RequestContext.Property, RequestContext.Scope |
| Field Summary | |
|---|---|
protected RequestContext |
request
|
| Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
|---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
| Constructor Summary | |
|---|---|
RequestContextWrapper(RequestContext request)
|
|
| 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 |
|
String |
getAccept()
Get the value of the Accept header |
|
String |
getAcceptCharset()
Get the value of the Accept-Charset header |
|
String |
getAcceptEncoding()
Get the value of the Accept-Encoding header |
|
String |
getAcceptLanguage()
Get the value of the Accept-Language header |
|
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 |
|
String |
getAuthorization()
Get the value of the Authorization header |
|
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 |
getCacheControl()
Return the value of the Cache-Control header |
|
String |
getContentLanguage()
Return the value of the Content-Language header |
|
IRI |
getContentLocation()
Return the value of the Content-Location header |
|
javax.activation.MimeType |
getContentType()
Return the value of the Content-Type header |
|
String |
getContextPath()
Return the web applications context path |
|
Date |
getDateHeader(String name)
Return the value of a Date header |
|
String |
getDecodedHeader(String name)
Get the decoded value of a RFC 2047 header |
|
String[] |
getDecodedHeaders(String name)
Return multiple decoded values for the specified header |
|
|
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 |
|
String |
getHeader(String name)
Get the value of the specified header |
|
String[] |
getHeaderNames()
Return a listing of header names |
|
Object[] |
getHeaders(String name)
Return multiple values for the specified header |
|
org.apache.abdera.util.EntityTag[] |
getIfMatch()
Get a listing of Etags from the If-Match header |
|
Date |
getIfModifiedSince()
Get the value of the If-Modified-Since header |
|
org.apache.abdera.util.EntityTag[] |
getIfNoneMatch()
Get a listing of ETags from the If-None-Match header |
|
Date |
getIfUnmodifiedSince()
Get the value of the If-Unmodified-Since header |
|
InputStream |
getInputStream()
Get the InputStream containing the request entity |
|
long |
getMaxAge()
Return the maximum-age as specified by the Cache-Control header |
|
long |
getMaxStale()
Get the max-stale value from the Cache-Control header |
|
String |
getMethod()
Get the HTTP method |
|
long |
getMinFresh()
Get the min-fresh value from the Cache-Control header |
|
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) |
|
String |
getSlug()
Return the value of the Slug header |
|
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 |
isNoCache()
Return true if the Cache-Control header contains no-cache |
|
boolean |
isNoStore()
Return true if the Cache-Control header contains no-store |
|
boolean |
isNoTransform()
Return true if the Cache-Control header contains no-transform |
|
boolean |
isOnlyIfCached()
True if the only-if-cached directive is set in the Cache-Control header |
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RequestContext request
| Constructor Detail |
|---|
public RequestContextWrapper(RequestContext request)
| Method Detail |
|---|
public Abdera getAbdera()
RequestContext
getAbdera in interface RequestContext
public Object getAttribute(RequestContext.Scope scope,
String name)
RequestContext
getAttribute in interface RequestContextpublic String[] getAttributeNames(RequestContext.Scope scope)
RequestContext
getAttributeNames in interface RequestContextpublic IRI getBaseUri()
RequestContext
getBaseUri in interface RequestContextpublic String getContextPath()
RequestContext
getContextPath in interface RequestContext
public <T extends Element> Document<T> getDocument()
throws ParseException,
IOException
RequestContext
getDocument in interface RequestContextParseException
IOException
public <T extends Element> Document<T> getDocument(Parser parser)
throws ParseException,
IOException
RequestContext
getDocument in interface RequestContextParseException
IOException
public <T extends Element> Document<T> getDocument(Parser parser,
ParserOptions options)
throws ParseException,
IOException
RequestContext
getDocument in interface RequestContextParseException
IOException
public <T extends Element> Document<T> getDocument(ParserOptions options)
throws ParseException,
IOException
RequestContext
getDocument in interface RequestContextParseException
IOException
public InputStream getInputStream()
throws IOException
RequestContext
getInputStream in interface RequestContextIOExceptionpublic String getMethod()
RequestContext
getMethod in interface RequestContextpublic String getParameter(String name)
RequestContext
getParameter in interface RequestContextpublic String[] getParameterNames()
RequestContext
getParameterNames in interface RequestContextpublic List<String> getParameters(String name)
RequestContext
getParameters in interface RequestContextpublic Locale getPreferredLocale()
RequestContext
getPreferredLocale in interface RequestContextpublic Locale[] getPreferredLocales()
RequestContext
getPreferredLocales in interface RequestContextpublic Principal getPrincipal()
RequestContext
getPrincipal in interface RequestContextpublic Object getProperty(RequestContext.Property property)
RequestContext
getProperty in interface RequestContextpublic Provider getProvider()
RequestContext
getProvider in interface RequestContext
public Reader getReader()
throws IOException
RequestContext
getReader in interface RequestContextIOExceptionpublic IRI getResolvedUri()
RequestContext
getResolvedUri in interface RequestContextpublic Subject getSubject()
RequestContext
getSubject in interface RequestContextpublic Target getTarget()
RequestContext
getTarget in interface RequestContextpublic String getTargetPath()
RequestContext
getTargetPath in interface RequestContextpublic IRI getUri()
RequestContext
getUri in interface RequestContextpublic boolean isUserInRole(String role)
RequestContext
isUserInRole in interface RequestContext
public RequestContext setAttribute(RequestContext.Scope scope,
String name,
Object value)
RequestContext
setAttribute in interface RequestContext
public RequestContext setAttribute(String name,
Object value)
RequestContext
setAttribute in interface RequestContextpublic String getAccept()
Request
getAccept in interface Requestpublic String getAcceptCharset()
Request
getAcceptCharset in interface Requestpublic String getAcceptEncoding()
Request
getAcceptEncoding in interface Requestpublic String getAcceptLanguage()
Request
getAcceptLanguage in interface Requestpublic String getAuthorization()
Request
getAuthorization in interface Requestpublic org.apache.abdera.util.EntityTag[] getIfMatch()
Request
getIfMatch in interface Requestpublic Date getIfModifiedSince()
Request
getIfModifiedSince in interface Requestpublic org.apache.abdera.util.EntityTag[] getIfNoneMatch()
Request
getIfNoneMatch in interface Requestpublic Date getIfUnmodifiedSince()
Request
getIfUnmodifiedSince in interface Requestpublic long getMaxStale()
Request
getMaxStale in interface Requestpublic long getMinFresh()
Request
getMinFresh in interface Requestpublic boolean isOnlyIfCached()
Request
isOnlyIfCached in interface Requestpublic String getCacheControl()
Message
getCacheControl in interface Messagepublic String getContentLanguage()
Message
getContentLanguage in interface Messagepublic IRI getContentLocation()
Message
getContentLocation in interface Messagepublic javax.activation.MimeType getContentType()
Message
getContentType in interface Messagepublic Date getDateHeader(String name)
Message
getDateHeader in interface Messagepublic String getDecodedHeader(String name)
Message
getDecodedHeader in interface Messagepublic String[] getDecodedHeaders(String name)
Message
getDecodedHeaders in interface Messagepublic String getHeader(String name)
Message
getHeader in interface Messagepublic String[] getHeaderNames()
Message
getHeaderNames in interface Messagepublic Object[] getHeaders(String name)
Message
getHeaders in interface Messagepublic long getMaxAge()
Message
getMaxAge in interface Messagepublic String getSlug()
Message
getSlug in interface Messagepublic boolean isNoCache()
Message
isNoCache in interface Messagepublic boolean isNoStore()
Message
isNoStore in interface Messagepublic boolean isNoTransform()
Message
isNoTransform in interface Message
public String urlFor(Object key,
Object param)
RequestContext
urlFor in interface RequestContextpublic String getTargetBasePath()
RequestContext
getTargetBasePath in interface RequestContext
public String absoluteUrlFor(Object key,
Object param)
RequestContext
absoluteUrlFor in interface RequestContextpublic boolean isAtom()
isAtom in interface RequestContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||