|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.protocol.util.AbstractMessage
org.apache.abdera.protocol.util.AbstractRequest
org.apache.abdera.protocol.server.context.AbstractRequestContext
org.apache.abdera.protocol.server.servlet.ServletRequestContext
public class ServletRequestContext
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.RequestContext |
|---|
RequestContext.Property, RequestContext.Scope |
| Field Summary |
|---|
| Fields inherited from class org.apache.abdera.protocol.server.context.AbstractRequestContext |
|---|
baseUri, document, method, principal, provider, requestUri, subject, 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 | |
|---|---|
ServletRequestContext(Provider provider,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(RequestContext.Scope scope,
String name)
Get the named attribute from the specified scope |
String[] |
getAttributeNames(RequestContext.Scope scope)
Return the list of attribute names in the specified scope |
String |
getContextPath()
Return the web applications context path |
Date |
getDateHeader(String name)
Return the value of a Date header |
String |
getHeader(String name)
Get the value of the specified header |
String[] |
getHeaderNames()
Return a listing of header names |
Object[] |
getHeaders(String name)
Return multiple values for the specified header |
InputStream |
getInputStream()
Get the InputStream containing the request entity |
String |
getParameter(String name)
Get the specified request parameter |
String[] |
getParameterNames()
Return the listing of parameter names |
List<String> |
getParameters(String name)
Return all the values for the specified parameter |
Locale |
getPreferredLocale()
Get the client's preferred locale as specified in the request |
Locale[] |
getPreferredLocales()
Get a listing of the client's preferred locales as specified in the request. |
Object |
getProperty(RequestContext.Property property)
Get the specified system property |
Reader |
getReader()
Get a Reader containing the request entity |
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSession |
getSession()
|
javax.servlet.http.HttpSession |
getSession(boolean create)
|
String |
getTargetBasePath()
Returns the subset of the request URI that is the base of the target path (e.g. |
boolean |
isUserInRole(String role)
Check to see if the authenticated user is in the specified role |
RequestContext |
setAttribute(RequestContext.Scope scope,
String name,
Object value)
Set the named attribute in the specified scope. |
| Methods inherited from class org.apache.abdera.protocol.server.context.AbstractRequestContext |
|---|
absoluteUrlFor, getAbdera, getBaseUri, getDocument, getDocument, getDocument, getDocument, getMethod, getPrincipal, getProvider, getResolvedUri, getSubject, getTarget, getTargetPath, getUri, initTarget, isAtom, setAttribute, urlFor |
| 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 |
|---|
absoluteUrlFor, getAbdera, getBaseUri, getDocument, getDocument, getDocument, getDocument, getMethod, getPrincipal, getProvider, getResolvedUri, getSubject, getTarget, getTargetPath, getUri, isAtom, setAttribute, urlFor |
| 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, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform |
| Constructor Detail |
|---|
public ServletRequestContext(Provider provider,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
| Method Detail |
|---|
public Object getProperty(RequestContext.Property property)
RequestContext
getProperty in interface RequestContext
public Reader getReader()
throws IOException
RequestContext
getReader in interface RequestContextIOException
public InputStream getInputStream()
throws IOException
RequestContext
getInputStream in interface RequestContextIOExceptionpublic javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.ServletContext getServletContext()
public javax.servlet.http.HttpSession getSession()
public javax.servlet.http.HttpSession getSession(boolean create)
public RequestContext setAttribute(RequestContext.Scope scope,
String name,
Object value)
RequestContext
setAttribute in interface RequestContext
public Object getAttribute(RequestContext.Scope scope,
String name)
RequestContext
getAttribute in interface RequestContextpublic String[] getAttributeNames(RequestContext.Scope scope)
RequestContext
getAttributeNames in interface RequestContextpublic String getParameter(String name)
RequestContext
getParameter in interface RequestContextpublic String[] getParameterNames()
RequestContext
getParameterNames in interface RequestContextpublic List<String> getParameters(String name)
RequestContext
getParameters in interface RequestContextpublic Date getDateHeader(String name)
Message
getDateHeader in interface Messagepublic String getHeader(String name)
Message
getHeader in interface Messagepublic String[] getHeaderNames()
Message
getHeaderNames in interface Messagepublic Object[] getHeaders(String name)
Message
getHeaders in interface Messagepublic boolean isUserInRole(String role)
RequestContext
isUserInRole in interface RequestContextpublic String getContextPath()
RequestContext
getContextPath in interface RequestContextpublic Locale getPreferredLocale()
RequestContext
getPreferredLocale in interface RequestContextpublic Locale[] getPreferredLocales()
RequestContext
getPreferredLocales in interface RequestContextpublic String getTargetBasePath()
RequestContext
getTargetBasePath in interface RequestContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||