org.opencms.flex
Class CmsFlexRequestKey

java.lang.Object
  extended by org.opencms.flex.CmsFlexRequestKey

public class CmsFlexRequestKey
extends Object

Describes the caching behaviour (or caching options) for a Flex request.

Since:
6.0.0

Constructor Summary
CmsFlexRequestKey(javax.servlet.http.HttpServletRequest req, String target, boolean online)
          This constructor is used when building a cache key from a request.
 
Method Summary
 Map<String,Object> getAttributes()
          Returns the request attributes.
 String getContainerElement()
          Returns the current container element.
 String getDevice()
          Returns the device.
 String getElement()
          Returns the element.
 String getEncoding()
          Returns the encoding.
 String getIp()
          Returns the ip.
 String getLocale()
          Returns the locale.
 Map<String,String[]> getParams()
          Returns the parameters.
 Integer getPort()
          Returns the port.
 String getResource()
          Returns the resource.
 String getScheme()
          Returns the schemes.
 javax.servlet.http.HttpSession getSession()
          Returns the the current users session, or null if the current user has no session.
 String getSite()
          Returns the site root.
 String getUri()
          Returns the uri.
 String getUser()
          Returns the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsFlexRequestKey

public CmsFlexRequestKey(javax.servlet.http.HttpServletRequest req,
                         String target,
                         boolean online)
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 for
target - the requested resource in the OpenCms VFS
online - must be true for an online resource, false for offline resources
Method Detail

getAttributes

public Map<String,Object> getAttributes()
Returns the request attributes.

Returns:
the request attributes

getContainerElement

public String getContainerElement()
Returns the current container element.

Returns:
the current container element

getDevice

public String getDevice()
Returns the device.

Returns:
the device

getElement

public String getElement()
Returns the element.

Returns:
the element

getEncoding

public String getEncoding()
Returns the encoding.

Returns:
the encoding

getIp

public String getIp()
Returns the ip.

Returns:
the ip

getLocale

public String getLocale()
Returns the locale.

Returns:
the locale

getParams

public Map<String,String[]> getParams()
Returns the parameters.

Returns:
the parameters

getPort

public Integer getPort()
Returns the port.

Returns:
the port

getResource

public String getResource()
Returns the resource.

Returns:
the resource

getScheme

public String getScheme()
Returns the schemes.

Returns:
the schemes

getSession

public javax.servlet.http.HttpSession getSession()
Returns the the current users session, or null if the current user has no session.

Returns:
the current users session, or null if the current user has no session

getSite

public String getSite()
Returns the site root.

Returns:
the site root

getUri

public String getUri()
Returns the uri.

Returns:
the uri

getUser

public String getUser()
Returns the user.

Returns:
the user