|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.protocol.util.AbstractMessage org.apache.abdera.protocol.util.AbstractRequest org.apache.abdera.protocol.server.context.AbstractRequestContext
public abstract class AbstractRequestContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.RequestContext |
---|
RequestContext.Property, RequestContext.Scope |
Field Summary | |
---|---|
protected IRI |
baseUri
|
protected Document<?> |
document
|
protected String |
method
|
protected Principal |
principal
|
protected Provider |
provider
|
protected IRI |
requestUri
|
protected Subject |
subject
|
protected Target |
target
|
Fields inherited from class org.apache.abdera.protocol.util.AbstractRequest |
---|
max_stale, min_fresh |
Fields inherited from class org.apache.abdera.protocol.util.AbstractMessage |
---|
flags, max_age |
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
Constructor Summary | |
---|---|
protected |
AbstractRequestContext(Provider provider,
String method,
IRI requestUri,
IRI baseUri)
|
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 |
|
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 |
|
|
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 |
getMethod()
Get the HTTP method |
|
Principal |
getPrincipal()
Get this requests authenticated Principal object |
|
Provider |
getProvider()
Get the Provider associated with this request |
|
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 |
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 |
|
protected Target |
initTarget()
|
|
boolean |
isAtom()
|
|
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 org.apache.abdera.protocol.util.AbstractRequest |
---|
getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxStale, getMinFresh, isOnlyIfCached, setMaxAge, setMaxStale, setMinFresh, setNoCache, setNoStore, setNoTransform, setOnlyIfCached |
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage |
---|
check, getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform, toggle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.abdera.protocol.server.RequestContext |
---|
getAttribute, getAttributeNames, getContextPath, getInputStream, getParameter, getParameterNames, getParameters, getPreferredLocale, getPreferredLocales, getProperty, getReader, getTargetBasePath, isUserInRole, setAttribute |
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 |
Field Detail |
---|
protected final Provider provider
protected Subject subject
protected Principal principal
protected Target target
protected final String method
protected final IRI requestUri
protected final IRI baseUri
protected Document<?> document
Constructor Detail |
---|
protected AbstractRequestContext(Provider provider, String method, IRI requestUri, IRI baseUri)
Method Detail |
---|
protected Target initTarget()
public Abdera getAbdera()
RequestContext
getAbdera
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(ParserOptions options) 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 IRI getBaseUri()
RequestContext
getBaseUri
in interface RequestContext
public IRI getResolvedUri()
RequestContext
getResolvedUri
in interface RequestContext
public String getMethod()
RequestContext
getMethod
in interface RequestContext
public IRI getUri()
RequestContext
getUri
in interface RequestContext
public Subject getSubject()
RequestContext
getSubject
in interface RequestContext
public Principal getPrincipal()
RequestContext
getPrincipal
in interface RequestContext
public Target getTarget()
RequestContext
getTarget
in interface RequestContext
public Provider getProvider()
RequestContext
getProvider
in interface RequestContext
public String getTargetPath()
RequestContext
getTargetPath
in interface RequestContext
public RequestContext setAttribute(String name, Object value)
RequestContext
setAttribute
in interface RequestContext
public String urlFor(Object key, Object param)
RequestContext
urlFor
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 |