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

java.lang.Object
  extended by org.apache.abdera.protocol.util.AbstractRequest
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.RequestContext
RequestContext.Property, RequestContext.Scope
 
Field Summary
protected  org.apache.abdera.i18n.iri.IRI baseUri
           
protected  ServiceContext context
           
protected  Document document
           
protected  java.lang.String method
           
protected  java.security.Principal principal
           
protected  org.apache.abdera.i18n.iri.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, org.apache.abdera.i18n.iri.IRI requestUri, org.apache.abdera.i18n.iri.IRI baseUri)
           
 
Method Summary
 Abdera getAbdera()
           
 org.apache.abdera.i18n.iri.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()
           
 java.security.Principal getPrincipal()
           
 org.apache.abdera.i18n.iri.IRI getResolvedUri()
           
 ServiceContext getServiceContext()
           
 javax.security.auth.Subject getSubject()
           
 Target getTarget()
           
 java.lang.String getTargetPath()
          Returns the subset of the request URI that is to be used to resolve the Target (everything after the context path)
 org.apache.abdera.i18n.iri.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.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
 

Field Detail

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
Constructor Detail

AbstractRequestContext

protected AbstractRequestContext(ServiceContext context,
                                 java.lang.String method,
                                 org.apache.abdera.i18n.iri.IRI requestUri,
                                 org.apache.abdera.i18n.iri.IRI baseUri)
Method Detail

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