程序包 | 说明 |
---|---|
org.opencms.flex |
Provides low-level JSP integration funtionality for OpenCms,
also implements the FlexCache, a declarative parameter-based cache.
|
org.opencms.jsp |
The implementation of the OpenCms JSP tag library, with some additional utility classes to
help in JSP scriplet code and navigation building.
|
org.opencms.loader |
Low-level functions to manage the loading of resources from the OpenCms VFS.
|
限定符和类型 | 方法和说明 |
---|---|
static CmsFlexController |
CmsFlexController.getController(javax.servlet.ServletRequest req)
Returns the controller from the given request, or
null if the
request is not running inside OpenCms. |
限定符和类型 | 方法和说明 |
---|---|
static void |
CmsFlexController.setController(javax.servlet.ServletRequest req,
CmsFlexController controller)
Stores the given controller in the given request (using a request attribute).
|
构造器和说明 |
---|
CmsFlexController(CmsObject cms,
CmsFlexController base)
Creates a new controller form the old one, exchanging just the provided OpenCms user context.
|
CmsFlexRequest(javax.servlet.http.HttpServletRequest req,
CmsFlexController controller)
Creates a new CmsFlexRequest wrapper which is most likely the "Top"
request wrapper, i.e. the wrapper that is constructed around the
first "real" (not wrapped) request.
|
CmsFlexResponse(javax.servlet.http.HttpServletResponse res,
CmsFlexController controller)
Constructor for the CmsFlexResponse,
this variation one is usually used to wrap responses for further include calls in OpenCms.
|
CmsFlexResponse(javax.servlet.http.HttpServletResponse res,
CmsFlexController controller,
boolean streaming,
boolean isTopElement)
Constructor for the CmsFlexResponse,
this variation is usually used for the "top" response.
|
限定符和类型 | 字段和说明 |
---|---|
protected CmsFlexController |
CmsJspTagResourceLoad.m_controller
The FlexController for the current request.
|
protected CmsFlexController |
CmsJspTagFormatter.m_controller
The FlexController for the current request.
|
限定符和类型 | 方法和说明 |
---|---|
protected CmsFlexController |
CmsJspBean.getController()
Returns the Flex controller derived from the request this bean was initialized with.
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
CmsJspTagInfo.getDescriptionInfo(CmsFlexController controller,
javax.servlet.http.HttpServletRequest req)
Returns the description of a page delivered from OpenCms, usually used for the
description metatag of
a HTML page. |
static java.lang.String |
CmsJspTagInfo.getKeywordsInfo(CmsFlexController controller,
javax.servlet.http.HttpServletRequest req)
Returns the keywords of a page delivered from OpenCms, usually used for the
keywords metatag of
a HTML page. |
static java.lang.String |
CmsJspTagInfo.getTitleInfo(CmsFlexController controller,
javax.servlet.http.HttpServletRequest req)
Returns the title of a page delivered from OpenCms, usually used for the
<title> tag of
a HTML page. |
限定符和类型 | 方法和说明 |
---|---|
protected CmsFlexController |
CmsJspLoader.getController(CmsObject cms,
CmsResource resource,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
boolean streaming,
boolean top)
Delivers a Flex controller, either by creating a new one, or by re-using an existing one.
|
限定符和类型 | 方法和说明 |
---|---|
protected byte[] |
CmsJspLoader.dispatchJsp(CmsFlexController controller)
Dispatches the current request to the OpenCms internal JSP.
|
protected byte[] |
CmsJspLoader.parseJsp(byte[] byteContent,
java.lang.String encoding,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles,
boolean isHardInclude)
Parses the JSP and modifies OpenCms critical directive information.
|
protected java.lang.String |
CmsJspLoader.parseJspCmsTag(java.lang.String content,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles)
Parses the JSP content for the special
<%cms file="..." |
protected java.lang.String |
CmsJspLoader.parseJspIncludes(java.lang.String content,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles)
Parses the JSP content for includes and replaces all OpenCms VFS
path information with information for the real FS.
|
protected java.lang.String |
CmsJspLoader.parseJspLinkMacros(java.lang.String content,
CmsFlexController controller)
Parses all jsp link macros, and replace them by the right target path.
|
protected CmsResource |
CmsJspLoader.readJspResource(CmsFlexController controller,
java.lang.String jspName)
Returns the jsp resource identified by the given name, using the controllers cms context.
|
java.lang.String |
CmsJspLoader.updateJsp(CmsResource resource,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles)
Updates a JSP page in the "real" file system in case the VFS resource has changed.
|
protected java.lang.String |
CmsJspLoader.updateJsp(java.lang.String vfsName,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles)
Updates a JSP page in the "real" file system in case the VFS resource has changed based on the resource name.
|
protected boolean |
CmsJspLoader.updateStrongLinks(CmsResource resource,
CmsFlexController controller,
java.util.Set<java.lang.String> updatedFiles)
Updates all jsp files that include the given jsp file using the 'link.strong' macro.
|