Class RequestContextWrapper
- java.lang.Object
-
- org.apache.abdera.protocol.server.context.RequestContextWrapper
-
- All Implemented Interfaces:
Message,Request,RequestContext,ProtocolConstants
@Deprecated public class RequestContextWrapper extends Object 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 RequestContextWrapper(RequestContext request)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringabsoluteUrlFor(Object key, Object param)Deprecated.Construct an absolute URL using the Provider's Target Builder.org.apache.abdera.AbderagetAbdera()Deprecated.Get the Abdera instance associated with this requestStringgetAccept()Deprecated.Get the value of the Accept headerStringgetAcceptCharset()Deprecated.Get the value of the Accept-Charset headerStringgetAcceptEncoding()Deprecated.Get the value of the Accept-Encoding headerStringgetAcceptLanguage()Deprecated.Get the value of the Accept-Language headerObjectgetAttribute(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 scopeStringgetAuthorization()Deprecated.Get the value of the Authorization headerorg.apache.abdera.i18n.iri.IRIgetBaseUri()Deprecated.Get the absolute base URI ...StringgetCacheControl()Deprecated.Return the value of the Cache-Control headerStringgetContentLanguage()Deprecated.Return the value of the Content-Language headerorg.apache.abdera.i18n.iri.IRIgetContentLocation()Deprecated.Return the value of the Content-Location headerMimeTypegetContentType()Deprecated.Return the value of the Content-Type headerStringgetContextPath()Deprecated.Return the web applications context pathDategetDateHeader(String name)Deprecated.Return the value of a Date headerStringgetDecodedHeader(String name)Deprecated.Get the decoded value of a RFC 2047 headerString[]getDecodedHeaders(String name)Deprecated.Return multiple decoded values for the specified header<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument()Deprecated.Use the Abdera Parser to parse the request entity as an XML document<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser)Deprecated.Use the Abdera Parser to parse the request entity as an XML document<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.ParserOptions options)Deprecated.Use the Abdera Parser to parse the request entity as an XML document<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options)Deprecated.Use the Abdera Parser to parse the request entity as an XML documentStringgetHeader(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 headerorg.apache.abdera.util.EntityTag[]getIfMatch()Deprecated.Get a listing of Etags from the If-Match headerDategetIfModifiedSince()Deprecated.Get the value of the If-Modified-Since headerorg.apache.abdera.util.EntityTag[]getIfNoneMatch()Deprecated.Get a listing of ETags from the If-None-Match headerDategetIfUnmodifiedSince()Deprecated.Get the value of the If-Unmodified-Since headerInputStreamgetInputStream()Deprecated.Get the InputStream containing the request entitylonggetMaxAge()Deprecated.Return the maximum-age as specified by the Cache-Control headerlonggetMaxStale()Deprecated.Get the max-stale value from the Cache-Control headerStringgetMethod()Deprecated.Get the HTTP methodlonggetMinFresh()Deprecated.Get the min-fresh value from the Cache-Control headerStringgetParameter(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.PrincipalgetPrincipal()Deprecated.Get this requests authenticated Principal objectObjectgetProperty(RequestContext.Property property)Deprecated.Get the specified system propertyProvidergetProvider()Deprecated.Get the Provider associated with this requestReadergetReader()Deprecated.Get a Reader containing the request entityorg.apache.abdera.i18n.iri.IRIgetResolvedUri()Deprecated.Get the absolute request URI (includes server name, port, etc)StringgetSlug()Deprecated.Return the value of the Slug headerSubjectgetSubject()Deprecated.Get this requests resolved SubjectTargetgetTarget()Deprecated.Get this requests resolved TargetStringgetTargetBasePath()Deprecated.Returns the subset of the request URI that is the base of the target path (e.g.StringgetTargetPath()Deprecated.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.IRIgetUri()Deprecated.Get the request URIbooleanisAtom()Deprecated.booleanisNoCache()Deprecated.Return true if the Cache-Control header contains no-cachebooleanisNoStore()Deprecated.Return true if the Cache-Control header contains no-storebooleanisNoTransform()Deprecated.Return true if the Cache-Control header contains no-transformbooleanisOnlyIfCached()Deprecated.True if the only-if-cached directive is set in the Cache-Control headerbooleanisUserInRole(String role)Deprecated.Check to see if the authenticated user is in the specified roleRequestContextsetAttribute(String name, Object value)Deprecated.Set the named attribute in the request scopeRequestContextsetAttribute(RequestContext.Scope scope, String name, Object value)Deprecated.Set the named attribute in the specified scope.StringurlFor(Object key, Object param)Deprecated.Construct a URL using the Provider's Target Builder
-
-
-
Constructor Detail
-
RequestContextWrapper
public RequestContextWrapper(RequestContext request)
Deprecated.
-
-
Method Detail
-
getAbdera
public org.apache.abdera.Abdera getAbdera()
Deprecated.Description copied from interface:RequestContextGet the Abdera instance associated with this request- Specified by:
getAbderain 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
-
getBaseUri
public org.apache.abdera.i18n.iri.IRI getBaseUri()
Deprecated.Description copied from interface:RequestContextGet the absolute base URI ... this is the request URI up to the Context Path of the web application within which the Abdera Servlet is deployed- Specified by:
getBaseUriin interfaceRequestContext
-
getContextPath
public String getContextPath()
Deprecated.Description copied from interface:RequestContextReturn the web applications context path- Specified by:
getContextPathin interfaceRequestContext
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument() throws org.apache.abdera.parser.ParseException, IOExceptionDeprecated.Description copied from interface:RequestContextUse the Abdera Parser to parse the request entity as an XML document- Specified by:
getDocumentin interfaceRequestContext- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser) throws org.apache.abdera.parser.ParseException, IOExceptionDeprecated.Description copied from interface:RequestContextUse the Abdera Parser to parse the request entity as an XML document- Specified by:
getDocumentin interfaceRequestContext- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException, IOExceptionDeprecated.Description copied from interface:RequestContextUse the Abdera Parser to parse the request entity as an XML document- Specified by:
getDocumentin interfaceRequestContext- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException, IOExceptionDeprecated.Description copied from interface:RequestContextUse the Abdera Parser to parse the request entity as an XML document- Specified by:
getDocumentin interfaceRequestContext- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Description copied from interface:RequestContextGet the InputStream containing the request entity- Specified by:
getInputStreamin interfaceRequestContext- Throws:
IOException
-
getMethod
public String getMethod()
Deprecated.Description copied from interface:RequestContextGet the HTTP method- Specified by:
getMethodin 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
-
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
-
getPrincipal
public Principal getPrincipal()
Deprecated.Description copied from interface:RequestContextGet this requests authenticated Principal object- Specified by:
getPrincipalin interfaceRequestContext
-
getProperty
public Object getProperty(RequestContext.Property property)
Deprecated.Description copied from interface:RequestContextGet the specified system property- Specified by:
getPropertyin interfaceRequestContext
-
getProvider
public Provider getProvider()
Deprecated.Description copied from interface:RequestContextGet the Provider associated with this request- Specified by:
getProviderin 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
-
getResolvedUri
public org.apache.abdera.i18n.iri.IRI getResolvedUri()
Deprecated.Description copied from interface:RequestContextGet the absolute request URI (includes server name, port, etc)- Specified by:
getResolvedUriin interfaceRequestContext
-
getSubject
public Subject getSubject()
Deprecated.Description copied from interface:RequestContextGet this requests resolved Subject- Specified by:
getSubjectin interfaceRequestContext
-
getTarget
public Target getTarget()
Deprecated.Description copied from interface:RequestContextGet this requests resolved Target- Specified by:
getTargetin interfaceRequestContext
-
getTargetPath
public String getTargetPath()
Deprecated.Description copied from interface:RequestContextReturns the subset of the request URI that is to be used to resolve the Target (everything after the context path)- Specified by:
getTargetPathin interfaceRequestContext
-
getUri
public org.apache.abdera.i18n.iri.IRI getUri()
Deprecated.Description copied from interface:RequestContextGet the request URI- Specified by:
getUriin interfaceRequestContext
-
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
-
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
-
setAttribute
public RequestContext setAttribute(String name, Object value)
Deprecated.Description copied from interface:RequestContextSet the named attribute in the request scope- Specified by:
setAttributein interfaceRequestContext
-
getAccept
public String getAccept()
Deprecated.Description copied from interface:RequestGet the value of the Accept header
-
getAcceptCharset
public String getAcceptCharset()
Deprecated.Description copied from interface:RequestGet the value of the Accept-Charset header- Specified by:
getAcceptCharsetin interfaceRequest
-
getAcceptEncoding
public String getAcceptEncoding()
Deprecated.Description copied from interface:RequestGet the value of the Accept-Encoding header- Specified by:
getAcceptEncodingin interfaceRequest
-
getAcceptLanguage
public String getAcceptLanguage()
Deprecated.Description copied from interface:RequestGet the value of the Accept-Language header- Specified by:
getAcceptLanguagein interfaceRequest
-
getAuthorization
public String getAuthorization()
Deprecated.Description copied from interface:RequestGet the value of the Authorization header- Specified by:
getAuthorizationin interfaceRequest
-
getIfMatch
public org.apache.abdera.util.EntityTag[] getIfMatch()
Deprecated.Description copied from interface:RequestGet a listing of Etags from the If-Match header- Specified by:
getIfMatchin interfaceRequest
-
getIfModifiedSince
public Date getIfModifiedSince()
Deprecated.Description copied from interface:RequestGet the value of the If-Modified-Since header- Specified by:
getIfModifiedSincein interfaceRequest
-
getIfNoneMatch
public org.apache.abdera.util.EntityTag[] getIfNoneMatch()
Deprecated.Description copied from interface:RequestGet a listing of ETags from the If-None-Match header- Specified by:
getIfNoneMatchin interfaceRequest
-
getIfUnmodifiedSince
public Date getIfUnmodifiedSince()
Deprecated.Description copied from interface:RequestGet the value of the If-Unmodified-Since header- Specified by:
getIfUnmodifiedSincein interfaceRequest
-
getMaxStale
public long getMaxStale()
Deprecated.Description copied from interface:RequestGet the max-stale value from the Cache-Control header- Specified by:
getMaxStalein interfaceRequest
-
getMinFresh
public long getMinFresh()
Deprecated.Description copied from interface:RequestGet the min-fresh value from the Cache-Control header- Specified by:
getMinFreshin interfaceRequest
-
isOnlyIfCached
public boolean isOnlyIfCached()
Deprecated.Description copied from interface:RequestTrue if the only-if-cached directive is set in the Cache-Control header- Specified by:
isOnlyIfCachedin interfaceRequest
-
getCacheControl
public String getCacheControl()
Deprecated.Description copied from interface:MessageReturn the value of the Cache-Control header- Specified by:
getCacheControlin interfaceMessage
-
getContentLanguage
public String getContentLanguage()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Language header- Specified by:
getContentLanguagein interfaceMessage
-
getContentLocation
public org.apache.abdera.i18n.iri.IRI getContentLocation()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Location header- Specified by:
getContentLocationin interfaceMessage
-
getContentType
public MimeType getContentType()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Type header- Specified by:
getContentTypein interfaceMessage
-
getDateHeader
public Date getDateHeader(String name)
Deprecated.Description copied from interface:MessageReturn the value of a Date header- Specified by:
getDateHeaderin interfaceMessage
-
getDecodedHeader
public String getDecodedHeader(String name)
Deprecated.Description copied from interface:MessageGet the decoded value of a RFC 2047 header- Specified by:
getDecodedHeaderin interfaceMessage
-
getDecodedHeaders
public String[] getDecodedHeaders(String name)
Deprecated.Description copied from interface:MessageReturn multiple decoded values for the specified header- Specified by:
getDecodedHeadersin 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
-
getMaxAge
public long getMaxAge()
Deprecated.Description copied from interface:MessageReturn the maximum-age as specified by the Cache-Control header
-
getSlug
public String getSlug()
Deprecated.Description copied from interface:MessageReturn the value of the Slug header
-
isNoCache
public boolean isNoCache()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-cache
-
isNoStore
public boolean isNoStore()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-store
-
isNoTransform
public boolean isNoTransform()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-transform- Specified by:
isNoTransformin interfaceMessage
-
urlFor
public String urlFor(Object key, Object param)
Deprecated.Description copied from interface:RequestContextConstruct a URL using the Provider's Target Builder- Specified by:
urlForin 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:
-
absoluteUrlFor
public String absoluteUrlFor(Object key, Object param)
Deprecated.Description copied from interface:RequestContextConstruct an absolute URL using the Provider's Target Builder. Relative URL's are resolved against the base URI- Specified by:
absoluteUrlForin interfaceRequestContext
-
isAtom
public boolean isAtom()
Deprecated.- Specified by:
isAtomin interfaceRequestContext
-
-