org.apache.abdera.protocol.server.impl
Class AbstractRequestContext
java.lang.Object
org.apache.abdera.protocol.util.AbstractRequest
org.apache.abdera.protocol.server.impl.AbstractRequestContext
- All Implemented Interfaces:
- Request, RequestContext, ProtocolConstants
- Direct Known Subclasses:
- HttpServletRequestContext
public abstract class AbstractRequestContext
- extends AbstractRequest
- implements RequestContext
Constructor Summary |
protected |
AbstractRequestContext(ServiceContext context,
java.lang.String method,
org.apache.abdera.i18n.iri.IRI requestUri,
org.apache.abdera.i18n.iri.IRI baseUri)
|
Methods inherited from class org.apache.abdera.protocol.util.AbstractRequest |
getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getCacheControl, getContentType, getDecodedHeader, getDecodedHeaders, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxAge, getMaxStale, getMinFresh, getSlug, isNoCache, isNoStore, isNoTransform, isOnlyIfCached, setMaxAge, setMaxStale, setMinFresh, setNoCache, setNoStore, setNoTransform, setOnlyIfCached |
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, getProperty, getReader, isUserInRole, setAttribute |
Methods inherited from interface org.apache.abdera.protocol.Request |
getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getCacheControl, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getMaxAge, getMaxStale, getMinFresh, getSlug, isNoCache, isNoStore, isNoTransform, isOnlyIfCached |
context
protected final ServiceContext context
subject
protected javax.security.auth.Subject subject
principal
protected java.security.Principal principal
target
protected Target target
method
protected final java.lang.String method
requestUri
protected final org.apache.abdera.i18n.iri.IRI requestUri
baseUri
protected final org.apache.abdera.i18n.iri.IRI baseUri
document
protected Document document
AbstractRequestContext
protected AbstractRequestContext(ServiceContext context,
java.lang.String method,
org.apache.abdera.i18n.iri.IRI requestUri,
org.apache.abdera.i18n.iri.IRI baseUri)
getAbdera
public Abdera getAbdera()
- Specified by:
getAbdera
in interface RequestContext
getDocument
public <T extends Element> Document<T> getDocument()
throws ParseException,
java.io.IOException
- Specified by:
getDocument
in interface RequestContext
- Throws:
ParseException
java.io.IOException
getDocument
public <T extends Element> Document<T> getDocument(Parser parser)
throws ParseException,
java.io.IOException
- Specified by:
getDocument
in interface RequestContext
- Throws:
ParseException
java.io.IOException
getDocument
public <T extends Element> Document<T> getDocument(ParserOptions options)
throws ParseException,
java.io.IOException
- Specified by:
getDocument
in interface RequestContext
- Throws:
ParseException
java.io.IOException
getDocument
public <T extends Element> Document<T> getDocument(Parser parser,
ParserOptions options)
throws ParseException,
java.io.IOException
- Specified by:
getDocument
in interface RequestContext
- Throws:
ParseException
java.io.IOException
getBaseUri
public org.apache.abdera.i18n.iri.IRI getBaseUri()
- Specified by:
getBaseUri
in interface RequestContext
getResolvedUri
public org.apache.abdera.i18n.iri.IRI getResolvedUri()
- Specified by:
getResolvedUri
in interface RequestContext
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface RequestContext
getUri
public org.apache.abdera.i18n.iri.IRI getUri()
- Specified by:
getUri
in interface RequestContext
getSubject
public javax.security.auth.Subject getSubject()
- Specified by:
getSubject
in interface RequestContext
getPrincipal
public java.security.Principal getPrincipal()
- Specified by:
getPrincipal
in interface RequestContext
getTarget
public Target getTarget()
- Specified by:
getTarget
in interface RequestContext
getServiceContext
public ServiceContext getServiceContext()
- Specified by:
getServiceContext
in interface RequestContext
getTargetPath
public java.lang.String getTargetPath()
- Description copied from interface:
RequestContext
- Returns the subset of the request URI that is to be used to resolve the Target
(everything after the context path)
- Specified by:
getTargetPath
in interface RequestContext