|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 RequestContext
public String[] getAttributeNames(RequestContext.Scope scope)
RequestContext
getAttributeNames
in interface RequestContext
public IRI getBaseUri()
RequestContext
getBaseUri
in interface RequestContext
public String getContextPath()
RequestContext
getContextPath
in interface RequestContext
public <T extends Element> Document<T> getDocument() throws ParseException, IOException
RequestContext
getDocument
in interface RequestContext
ParseException
IOException
public <T extends Element> Document<T> getDocument(Parser parser) throws ParseException, IOException
RequestContext
getDocument
in interface RequestContext
ParseException
IOException
public <T extends Element> Document<T> getDocument(Parser parser, ParserOptions options) throws ParseException, IOException
RequestContext
getDocument
in interface RequestContext
ParseException
IOException
public <T extends Element> Document<T> getDocument(ParserOptions options) throws ParseException, IOException
RequestContext
getDocument
in interface RequestContext
ParseException
IOException
public InputStream getInputStream() throws IOException
RequestContext
getInputStream
in interface RequestContext
IOException
public String getMethod()
RequestContext
getMethod
in interface RequestContext
public String getParameter(String name)
RequestContext
getParameter
in interface RequestContext
public String[] getParameterNames()
RequestContext
getParameterNames
in interface RequestContext
public List<String> getParameters(String name)
RequestContext
getParameters
in interface RequestContext
public Locale getPreferredLocale()
RequestContext
getPreferredLocale
in interface RequestContext
public Locale[] getPreferredLocales()
RequestContext
getPreferredLocales
in interface RequestContext
public Principal getPrincipal()
RequestContext
getPrincipal
in interface RequestContext
public Object getProperty(RequestContext.Property property)
RequestContext
getProperty
in interface RequestContext
public Provider getProvider()
RequestContext
getProvider
in interface RequestContext
public Reader getReader() throws IOException
RequestContext
getReader
in interface RequestContext
IOException
public IRI getResolvedUri()
RequestContext
getResolvedUri
in interface RequestContext
public Subject getSubject()
RequestContext
getSubject
in interface RequestContext
public Target getTarget()
RequestContext
getTarget
in interface RequestContext
public String getTargetPath()
RequestContext
getTargetPath
in interface RequestContext
public IRI getUri()
RequestContext
getUri
in interface RequestContext
public 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 RequestContext
public String getAccept()
Request
getAccept
in interface Request
public String getAcceptCharset()
Request
getAcceptCharset
in interface Request
public String getAcceptEncoding()
Request
getAcceptEncoding
in interface Request
public String getAcceptLanguage()
Request
getAcceptLanguage
in interface Request
public String getAuthorization()
Request
getAuthorization
in interface Request
public org.apache.abdera.util.EntityTag[] getIfMatch()
Request
getIfMatch
in interface Request
public Date getIfModifiedSince()
Request
getIfModifiedSince
in interface Request
public org.apache.abdera.util.EntityTag[] getIfNoneMatch()
Request
getIfNoneMatch
in interface Request
public Date getIfUnmodifiedSince()
Request
getIfUnmodifiedSince
in interface Request
public long getMaxStale()
Request
getMaxStale
in interface Request
public long getMinFresh()
Request
getMinFresh
in interface Request
public boolean isOnlyIfCached()
Request
isOnlyIfCached
in interface Request
public String getCacheControl()
Message
getCacheControl
in interface Message
public String getContentLanguage()
Message
getContentLanguage
in interface Message
public IRI getContentLocation()
Message
getContentLocation
in interface Message
public javax.activation.MimeType getContentType()
Message
getContentType
in interface Message
public Date getDateHeader(String name)
Message
getDateHeader
in interface Message
public String getDecodedHeader(String name)
Message
getDecodedHeader
in interface Message
public String[] getDecodedHeaders(String name)
Message
getDecodedHeaders
in interface Message
public String getHeader(String name)
Message
getHeader
in interface Message
public String[] getHeaderNames()
Message
getHeaderNames
in interface Message
public Object[] getHeaders(String name)
Message
getHeaders
in interface Message
public long getMaxAge()
Message
getMaxAge
in interface Message
public String getSlug()
Message
getSlug
in interface Message
public boolean isNoCache()
Message
isNoCache
in interface Message
public boolean isNoStore()
Message
isNoStore
in interface Message
public boolean isNoTransform()
Message
isNoTransform
in interface Message
public String urlFor(Object key, Object param)
RequestContext
urlFor
in interface RequestContext
public String getTargetBasePath()
RequestContext
getTargetBasePath
in interface RequestContext
public String absoluteUrlFor(Object key, Object param)
RequestContext
absoluteUrlFor
in interface RequestContext
public boolean isAtom()
isAtom
in interface RequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |