Package org.opencms.flex
Class CmsFlexRequestKey
java.lang.Object
org.opencms.flex.CmsFlexRequestKey
Describes the caching behaviour (or caching options) for a Flex request.
- Since:
- 6.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains the root paths to be used for determining the buckets of a flex cache entry. -
Constructor Summary
ConstructorDescriptionCmsFlexRequestKey
(javax.servlet.http.HttpServletRequest req, String target, boolean online) This constructor is used when building a cache key from a request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the request attributes.Returns the current container element.Returns the device.Returns the element.Returns the encoding.getIp()
Returns the ip.Returns the locale.Returns the parameters.getPaths()
Gets the bean containing the paths which should be used to determine the flex cache buckets for this entry.getPort()
Returns the port.Returns the resource.Returns the schemes.javax.servlet.http.HttpSession
Returns the the current users session, ornull
if the current user has no session.getSite()
Returns the site root.getUri()
Returns the uri.getUser()
Returns the user.boolean
Returns true if the 'force absolute links' flag is set in the request context.
-
Constructor Details
-
CmsFlexRequestKey
This constructor is used when building a cache key from a request.The request contains several data items that are neccessary to construct the output. These items are e.g. the Query-String, the requested resource, the current time etc. etc. All required items are saved in the constructed cache - key.
- Parameters:
req
- the request to construct the key fortarget
- the requested resource in the OpenCms VFSonline
- must be true for an online resource, false for offline resources
-
-
Method Details
-
getAttributes
Returns the request attributes.- Returns:
- the request attributes
-
getContainerElement
Returns the current container element.- Returns:
- the current container element
-
getDevice
Returns the device.- Returns:
- the device
-
getElement
Returns the element.- Returns:
- the element
-
getEncoding
Returns the encoding.- Returns:
- the encoding
-
getIp
Returns the ip.- Returns:
- the ip
-
getLocale
Returns the locale.- Returns:
- the locale
-
getParams
Returns the parameters.- Returns:
- the parameters
-
getPaths
Gets the bean containing the paths which should be used to determine the flex cache buckets for this entry.- Returns:
- the bean with the paths for this entry
-
getPort
Returns the port.- Returns:
- the port
-
getResource
Returns the resource.- Returns:
- the resource
-
getScheme
Returns the schemes.- Returns:
- the schemes
-
getSession
Returns the the current users session, ornull
if the current user has no session.- Returns:
- the current users session, or
null
if the current user has no session
-
getSite
Returns the site root.- Returns:
- the site root
-
getUri
Returns the uri.- Returns:
- the uri
-
getUser
Returns the user.- Returns:
- the user
-
isForceAbsoluteLinks
Returns true if the 'force absolute links' flag is set in the request context.- Returns:
- the 'force absolute links' flag from the request context
-