org.apache.abdera.protocol.server
Interface RequestContext

All Superinterfaces:
ProtocolConstants, Request
All Known Implementing Classes:
AbstractRequestContext, HttpServletRequestContext

public interface RequestContext
extends Request


Nested Class Summary
static class RequestContext.Property
           
static class RequestContext.Scope
           
 
Field Summary
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Method Summary
 Abdera getAbdera()
           
 java.lang.Object getAttribute(RequestContext.Scope scope, java.lang.String name)
           
 java.lang.String[] getAttributeNames(RequestContext.Scope scope)
           
 org.apache.abdera.i18n.iri.IRI getBaseUri()
           
 java.lang.String getContextPath()
           
<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.io.InputStream getInputStream()
           
 java.lang.String getMethod()
           
 java.lang.String getParameter(java.lang.String name)
           
 java.lang.String[] getParameterNames()
           
 java.util.List<java.lang.String> getParameters(java.lang.String name)
           
 java.security.Principal getPrincipal()
           
 java.lang.Object getProperty(RequestContext.Property property)
           
 java.io.Reader getReader()
           
 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()
           
 boolean isUserInRole(java.lang.String role)
           
 void setAttribute(RequestContext.Scope scope, java.lang.String name, java.lang.Object value)
           
 
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
 

Method Detail

getAbdera

Abdera getAbdera()

getServiceContext

ServiceContext getServiceContext()

getTarget

Target getTarget()

getSubject

javax.security.auth.Subject getSubject()

getPrincipal

java.security.Principal getPrincipal()

getMethod

java.lang.String getMethod()

getUri

org.apache.abdera.i18n.iri.IRI getUri()

getResolvedUri

org.apache.abdera.i18n.iri.IRI getResolvedUri()

getBaseUri

org.apache.abdera.i18n.iri.IRI getBaseUri()

getProperty

java.lang.Object getProperty(RequestContext.Property property)

getParameter

java.lang.String getParameter(java.lang.String name)

getParameterNames

java.lang.String[] getParameterNames()

getParameters

java.util.List<java.lang.String> getParameters(java.lang.String name)

getAttribute

java.lang.Object getAttribute(RequestContext.Scope scope,
                              java.lang.String name)

getAttributeNames

java.lang.String[] getAttributeNames(RequestContext.Scope scope)

setAttribute

void setAttribute(RequestContext.Scope scope,
                  java.lang.String name,
                  java.lang.Object value)

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getReader

java.io.Reader getReader()
                         throws java.io.IOException
Throws:
java.io.IOException

getDocument

<T extends Element> Document<T> getDocument()
                                        throws ParseException,
                                               java.io.IOException
Throws:
ParseException
java.io.IOException

getDocument

<T extends Element> Document<T> getDocument(Parser parser)
                                        throws ParseException,
                                               java.io.IOException
Throws:
ParseException
java.io.IOException

getDocument

<T extends Element> Document<T> getDocument(Parser parser,
                                            ParserOptions options)
                                        throws ParseException,
                                               java.io.IOException
Throws:
ParseException
java.io.IOException

getDocument

<T extends Element> Document<T> getDocument(ParserOptions options)
                                        throws ParseException,
                                               java.io.IOException
Throws:
ParseException
java.io.IOException

isUserInRole

boolean isUserInRole(java.lang.String role)

getContextPath

java.lang.String getContextPath()

getTargetPath

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)