|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.flex.cache.CmsFlexController
Controller for getting access to the CmsObject, should be used as a request attribute.
| Field Summary | |
static String |
ATTRIBUTE_NAME
Constant for the controller request attribute name |
| Constructor Summary | |
CmsFlexController(CmsObject cms,
CmsFile file,
CmsFlexCache cache,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Default constructor. |
|
| Method Summary | |
CmsFlexCache |
getCmsCache()
Returns the CmsFlexCache instance where all results from this request will be cached in. |
CmsFile |
getCmsFile()
This method provides access to the top-level CmsFile of the request which is of a type that supports the FlexCache, i.e. usually the CmsFile that is identical to the file uri requested by the user, not he current included element. |
CmsObject |
getCmsObject()
Returns the wrapped CmsObject. |
static CmsObject |
getCmsObject(javax.servlet.ServletRequest req)
Returns the wrapped CmsObject form the provided request, or null if the request is not running inside OpenCms. |
CmsFlexRequest |
getCurrentRequest()
|
CmsFlexResponse |
getCurrentResponse()
|
int |
getResponseQueueSize()
|
javax.servlet.http.HttpServletRequest |
getTopRequest()
|
javax.servlet.http.HttpServletResponse |
getTopResponse()
|
static boolean |
isCmsRequest(javax.servlet.ServletRequest req)
Checks if the provided request is running in OpenCms. |
CmsFlexRequest |
popRequest()
|
CmsFlexResponse |
popResponse()
|
void |
pushRequest(CmsFlexRequest req)
|
void |
pushResponse(CmsFlexResponse res)
|
void |
suspendFlexResponse()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ATTRIBUTE_NAME
| Constructor Detail |
public CmsFlexController(CmsObject cms,
CmsFile file,
CmsFlexCache cache,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
cms - the initial CmsObject to wrap in the controller| Method Detail |
public CmsObject getCmsObject()
public static CmsObject getCmsObject(javax.servlet.ServletRequest req)
public static boolean isCmsRequest(javax.servlet.ServletRequest req)
public CmsFlexCache getCmsCache()
This is public so that pages like the Flex Cache Administration page have a way to access the cache object.
public CmsFile getCmsFile()
In case a JSP is used as a sub-element in a XMLTemplate, this method will not return the top-level uri but the "topmost" file of a type that is supported by the FlexCache. In case you need the top uri, use getCmsObject().getRequestContext().getUri().
public CmsFlexRequest getCurrentRequest()
public void pushRequest(CmsFlexRequest req)
public CmsFlexRequest popRequest()
public CmsFlexResponse getCurrentResponse()
public void pushResponse(CmsFlexResponse res)
public CmsFlexResponse popResponse()
public void suspendFlexResponse()
public int getResponseQueueSize()
public javax.servlet.http.HttpServletRequest getTopRequest()
public javax.servlet.http.HttpServletResponse getTopResponse()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||