Interface RequestContext
-
- All Superinterfaces:
Message,ProtocolConstants,Request
- All Known Implementing Classes:
AbstractRequestContext,RequestContextWrapper,ServletRequestContext
@Deprecated public interface RequestContext extends Request
Deprecated.Legacy AEM 6.x API.The RequestContext provides access to every detail of the Request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRequestContext.PropertyDeprecated.Special properties provided by the serverstatic classRequestContext.ScopeDeprecated.RequestContext attributes can either have Session or Request scope.
-
Field Summary
-
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
-
-
Method Summary
All Methods Instance Methods Abstract 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 requestObjectgetAttribute(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 scopeorg.apache.abdera.i18n.iri.IRIgetBaseUri()Deprecated.Get the absolute base URI ...StringgetContextPath()Deprecated.Return the web applications context path<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 documentInputStreamgetInputStream()Deprecated.Get the InputStream containing the request entityStringgetMethod()Deprecated.Get the HTTP methodStringgetParameter(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)SubjectgetSubject()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.booleanisUserInRole(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-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, 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
-
-
-
-
Method Detail
-
getAbdera
org.apache.abdera.Abdera getAbdera()
Deprecated.Get the Abdera instance associated with this request
-
getProvider
Provider getProvider()
Deprecated.Get the Provider associated with this request
-
getTarget
Target getTarget()
Deprecated.Get this requests resolved Target
-
getSubject
Subject getSubject()
Deprecated.Get this requests resolved Subject
-
getPrincipal
Principal getPrincipal()
Deprecated.Get this requests authenticated Principal object
-
getPreferredLocale
Locale getPreferredLocale()
Deprecated.Get the client's preferred locale as specified in the request
-
getPreferredLocales
Locale[] getPreferredLocales()
Deprecated.Get a listing of the client's preferred locales as specified in the request. The listing will be sorted in order of preference.
-
getMethod
String getMethod()
Deprecated.Get the HTTP method
-
getUri
org.apache.abdera.i18n.iri.IRI getUri()
Deprecated.Get the request URI
-
getResolvedUri
org.apache.abdera.i18n.iri.IRI getResolvedUri()
Deprecated.Get the absolute request URI (includes server name, port, etc)
-
getBaseUri
org.apache.abdera.i18n.iri.IRI getBaseUri()
Deprecated.Get 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
-
getProperty
Object getProperty(RequestContext.Property property)
Deprecated.Get the specified system property
-
getParameterNames
String[] getParameterNames()
Deprecated.Return the listing of parameter names
-
getParameters
List<String> getParameters(String name)
Deprecated.Return all the values for the specified parameter
-
getAttribute
Object getAttribute(RequestContext.Scope scope, String name)
Deprecated.Get the named attribute from the specified scope
-
getAttributeNames
String[] getAttributeNames(RequestContext.Scope scope)
Deprecated.Return the list of attribute names in the specified scope
-
setAttribute
RequestContext setAttribute(String name, Object value)
Deprecated.Set the named attribute in the request scope
-
setAttribute
RequestContext setAttribute(RequestContext.Scope scope, String name, Object value)
Deprecated.Set the named attribute in the specified scope. If Session scope is specific, a new session will be created if one does not already exist
-
getInputStream
InputStream getInputStream() throws IOException
Deprecated.Get the InputStream containing the request entity- Throws:
IOException
-
getReader
Reader getReader() throws IOException
Deprecated.Get a Reader containing the request entity- Throws:
IOException
-
getDocument
<T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument() throws org.apache.abdera.parser.ParseException, IOExceptionDeprecated.Use the Abdera Parser to parse the request entity as an XML document- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
<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.Use the Abdera Parser to parse the request entity as an XML document- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
<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.Use the Abdera Parser to parse the request entity as an XML document- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
getDocument
<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.Use the Abdera Parser to parse the request entity as an XML document- Throws:
org.apache.abdera.parser.ParseExceptionIOException
-
isUserInRole
boolean isUserInRole(String role)
Deprecated.Check to see if the authenticated user is in the specified role
-
getContextPath
String getContextPath()
Deprecated.Return the web applications context path
-
getTargetPath
String getTargetPath()
Deprecated.Returns the subset of the request URI that is to be used to resolve the Target (everything after the context path)
-
getTargetBasePath
String getTargetBasePath()
Deprecated.Returns the subset of the request URI that is the base of the target path (e.g. HttpServletRequest.getServletPath())- Returns:
-
urlFor
String urlFor(Object key, Object param)
Deprecated.Construct a URL using the Provider's Target Builder
-
absoluteUrlFor
String absoluteUrlFor(Object key, Object param)
Deprecated.Construct an absolute URL using the Provider's Target Builder. Relative URL's are resolved against the base URI
-
isAtom
boolean isAtom()
Deprecated.
-
-