|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspTagParse
public class CmsJspTagParse
Implements the <cms:parse></cms:parse> tag to allow parsing of nested
HTML with the A_CmsConfiguredHtmlParser} implementation specified by the "parserClass" attribute.
| Field Summary | |
|---|---|
static java.lang.String |
ATT_VISITOR_CLASS
The name of the mandatory Tag attribute for the visitor class an instance of will be guided throught the body content. |
static java.lang.String |
TAG_NAME
Tag name constant for log output. |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
CmsJspTagParse()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
java.lang.String |
getNoAutoCloseTags()
Getter for the attribute "noAutoCloseTags" of the <cms:parse> tag. |
java.lang.String |
getParam()
Returns the param. |
java.lang.String |
getParserClass()
Returns the fully qualified class name of the A_CmsConfiguredHtmlParser class to use
for parsing. |
java.lang.String |
parseTagAction(java.lang.String content,
javax.servlet.jsp.PageContext context,
A_CmsConfiguredHtmlParser parser)
Internal action method. |
void |
release()
|
void |
setNoAutoCloseTags(java.lang.String noAutoCloseTagList)
Setter for the attribute "noAutoCloseTags" of the <cms:parse> tag. |
void |
setParam(java.lang.String param)
Sets the param. |
void |
setParserClass(java.lang.String parserClass)
Sets the fully qualified class name of the A_CmsConfiguredHtmlParser class to use for
parsing. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setPageContext, setParent |
| Field Detail |
|---|
public static final java.lang.String ATT_VISITOR_CLASS
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public CmsJspTagParse()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - in case something goes wrongTag.doEndTag()public java.lang.String getNoAutoCloseTags()
Returns a String that consists of the comma-separated upper case tag names for which this
tag will not correct missing closing tags.
public java.lang.String getParam()
public java.lang.String getParserClass()
A_CmsConfiguredHtmlParser class to use
for parsing.
public java.lang.String parseTagAction(java.lang.String content,
javax.servlet.jsp.PageContext context,
A_CmsConfiguredHtmlParser parser)
Parses (and potentially transforms) a HTMl content block.
content - the content to be parsed / transformedcontext - needed for getting the encoding / the localeparser - the visitor / parser to use
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportTag.release()public void setNoAutoCloseTags(java.lang.String noAutoCloseTagList)
Awaits a String that consists of the comma-separated upper case tag names for which this
tag should not correct missing closing tags.
noAutoCloseTagList - a String that consists of the comma-separated upper case tag names for which this
tag should not correct missing closing tagspublic void setParam(java.lang.String param)
param - the param to setpublic void setParserClass(java.lang.String parserClass)
A_CmsConfiguredHtmlParser class to use for
parsing.
parserClass - the fully qualified class name of the A_CmsConfiguredHtmlParser
class to use for parsing
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||