org.apache.abdera.protocol.server.provider
Class AbstractRequestContext

java.lang.Object
  extended by org.apache.abdera.protocol.util.AbstractRequest
      extended by org.apache.abdera.protocol.server.provider.AbstractRequestContext
All Implemented Interfaces:
Request, RequestContext, ProtocolConstants
Direct Known Subclasses:
HttpServletRequestContext

public abstract class AbstractRequestContext
extends AbstractRequest
implements RequestContext


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.provider.RequestContext
RequestContext.Property, RequestContext.Scope
 
Field Summary
protected  IRI baseUri
           
protected  ServiceContext context
           
protected  Document document
           
protected  java.lang.String method
           
protected  IRI requestUri
           
protected  javax.security.auth.Subject subject
           
protected  Target target
           
 
Fields inherited from class org.apache.abdera.protocol.util.AbstractRequest
flags, max_age, max_stale, min_fresh
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Constructor Summary
protected AbstractRequestContext(ServiceContext context, java.lang.String method, IRI requestUri, IRI baseUri)
           
 
Method Summary
 IRI getBaseUri()
           
<T extends Element>
Document<T>
getDocument()
           
<T extends Element>
Document<T>
getDocument(Parser parser)
           
<T extends Element>
Document<T>
getDocument(ParserOptions options)
           
<T extends Element>
Document<T>
getDocument(Parser parser, ParserOptions options)
           
 java.lang.String getMethod()
           
 IRI getResolvedUri()
           
 ServiceContext getServiceContext()
           
 javax.security.auth.Subject getSubject()
           
 Target getTarget()
           
 IRI getUri()
           
 
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.provider.RequestContext
getAttribute, getAttributeNames, getInputStream, getParameter, getParameterNames, getParameters, getProperty, getReader, 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
 

Field Detail

context

protected final ServiceContext context

subject

protected javax.security.auth.Subject subject

target

protected Target target

method

protected final java.lang.String method

requestUri

protected final IRI requestUri

baseUri

protected final IRI baseUri

document

protected Document document
Constructor Detail

AbstractRequestContext

protected AbstractRequestContext(ServiceContext context,
                                 java.lang.String method,
                                 IRI requestUri,
                                 IRI baseUri)
Method Detail

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 IRI getBaseUri()
Specified by:
getBaseUri in interface RequestContext

getResolvedUri

public IRI getResolvedUri()
Specified by:
getResolvedUri in interface RequestContext

getMethod

public java.lang.String getMethod()
Specified by:
getMethod in interface RequestContext

getUri

public IRI getUri()
Specified by:
getUri in interface RequestContext

getSubject

public javax.security.auth.Subject getSubject()
Specified by:
getSubject in interface RequestContext

getTarget

public Target getTarget()
Specified by:
getTarget in interface RequestContext

getServiceContext

public ServiceContext getServiceContext()
Specified by:
getServiceContext in interface RequestContext