Class ServletRequestContext
- java.lang.Object
-
- org.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
-
- All Implemented Interfaces:
Message,Request,RequestContext,ProtocolConstants
@Deprecated public class ServletRequestContext extends AbstractRequestContext implements RequestContext
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.server.RequestContext
RequestContext.Property, RequestContext.Scope
-
-
Field Summary
-
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
-
-
Constructor Summary
Constructors Constructor Description ServletRequestContext(Provider provider, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetAttribute(RequestContext.Scope scope, String name)Deprecated.Get the named attribute from the specified scopeString[]getAttributeNames(RequestContext.Scope scope)Deprecated.Return the list of attribute names in the specified scopeStringgetContextPath()Deprecated.Return the web applications context pathDategetDateHeader(String name)Deprecated.Return the value of a Date headerStringgetHeader(String name)Deprecated.Get the value of the specified headerString[]getHeaderNames()Deprecated.Return a listing of header namesObject[]getHeaders(String name)Deprecated.Return multiple values for the specified headerInputStreamgetInputStream()Deprecated.Get the InputStream containing the request entityStringgetParameter(String name)Deprecated.Get the specified request parameterString[]getParameterNames()Deprecated.Return the listing of parameter namesList<String>getParameters(String name)Deprecated.Return all the values for the specified parameterLocalegetPreferredLocale()Deprecated.Get the client's preferred locale as specified in the requestLocale[]getPreferredLocales()Deprecated.Get a listing of the client's preferred locales as specified in the request.ObjectgetProperty(RequestContext.Property property)Deprecated.Get the specified system propertyReadergetReader()Deprecated.Get a Reader containing the request entityjavax.servlet.http.HttpServletRequestgetRequest()Deprecated.javax.servlet.ServletContextgetServletContext()Deprecated.javax.servlet.http.HttpSessiongetSession()Deprecated.javax.servlet.http.HttpSessiongetSession(boolean create)Deprecated.StringgetTargetBasePath()Deprecated.Returns the subset of the request URI that is the base of the target path (e.g.booleanisUserInRole(String role)Deprecated.Check to see if the authenticated user is in the specified roleRequestContextsetAttribute(RequestContext.Scope scope, String name, Object value)Deprecated.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, 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
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
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.server.RequestContext
absoluteUrlFor, getAbdera, getBaseUri, getDocument, getDocument, getDocument, getDocument, getMethod, getPrincipal, getProvider, getResolvedUri, getSubject, getTarget, getTargetPath, getUri, isAtom, setAttribute, urlFor
-
-
-
-
Constructor Detail
-
ServletRequestContext
public ServletRequestContext(Provider provider, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
Deprecated.
-
-
Method Detail
-
getProperty
public Object getProperty(RequestContext.Property property)
Deprecated.Description copied from interface:RequestContextGet the specified system property- Specified by:
getPropertyin interfaceRequestContext
-
getReader
public Reader getReader() throws IOException
Deprecated.Description copied from interface:RequestContextGet a Reader containing the request entity- Specified by:
getReaderin interfaceRequestContext- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Description copied from interface:RequestContextGet the InputStream containing the request entity- Specified by:
getInputStreamin interfaceRequestContext- Throws:
IOException
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
Deprecated.
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Deprecated.
-
getSession
public javax.servlet.http.HttpSession getSession()
Deprecated.
-
getSession
public javax.servlet.http.HttpSession getSession(boolean create)
Deprecated.
-
setAttribute
public RequestContext setAttribute(RequestContext.Scope scope, String name, Object value)
Deprecated.Description copied from interface:RequestContextSet the named attribute in the specified scope. If Session scope is specific, a new session will be created if one does not already exist- Specified by:
setAttributein interfaceRequestContext
-
getAttribute
public Object getAttribute(RequestContext.Scope scope, String name)
Deprecated.Description copied from interface:RequestContextGet the named attribute from the specified scope- Specified by:
getAttributein interfaceRequestContext
-
getAttributeNames
public String[] getAttributeNames(RequestContext.Scope scope)
Deprecated.Description copied from interface:RequestContextReturn the list of attribute names in the specified scope- Specified by:
getAttributeNamesin interfaceRequestContext
-
getParameter
public String getParameter(String name)
Deprecated.Description copied from interface:RequestContextGet the specified request parameter- Specified by:
getParameterin interfaceRequestContext
-
getParameterNames
public String[] getParameterNames()
Deprecated.Description copied from interface:RequestContextReturn the listing of parameter names- Specified by:
getParameterNamesin interfaceRequestContext
-
getParameters
public List<String> getParameters(String name)
Deprecated.Description copied from interface:RequestContextReturn all the values for the specified parameter- Specified by:
getParametersin interfaceRequestContext
-
getDateHeader
public Date getDateHeader(String name)
Deprecated.Description copied from interface:MessageReturn the value of a Date header- Specified by:
getDateHeaderin interfaceMessage
-
getHeader
public String getHeader(String name)
Deprecated.Description copied from interface:MessageGet the value of the specified header
-
getHeaderNames
public String[] getHeaderNames()
Deprecated.Description copied from interface:MessageReturn a listing of header names- Specified by:
getHeaderNamesin interfaceMessage
-
getHeaders
public Object[] getHeaders(String name)
Deprecated.Description copied from interface:MessageReturn multiple values for the specified header- Specified by:
getHeadersin interfaceMessage
-
isUserInRole
public boolean isUserInRole(String role)
Deprecated.Description copied from interface:RequestContextCheck to see if the authenticated user is in the specified role- Specified by:
isUserInRolein interfaceRequestContext
-
getContextPath
public String getContextPath()
Deprecated.Description copied from interface:RequestContextReturn the web applications context path- Specified by:
getContextPathin interfaceRequestContext
-
getPreferredLocale
public Locale getPreferredLocale()
Deprecated.Description copied from interface:RequestContextGet the client's preferred locale as specified in the request- Specified by:
getPreferredLocalein interfaceRequestContext
-
getPreferredLocales
public Locale[] getPreferredLocales()
Deprecated.Description copied from interface:RequestContextGet a listing of the client's preferred locales as specified in the request. The listing will be sorted in order of preference.- Specified by:
getPreferredLocalesin interfaceRequestContext
-
getTargetBasePath
public String getTargetBasePath()
Deprecated.Description copied from interface:RequestContextReturns the subset of the request URI that is the base of the target path (e.g. HttpServletRequest.getServletPath())- Specified by:
getTargetBasePathin interfaceRequestContext- Returns:
-
-