public abstract class OutSupport extends BodyTagSupport
Support for handlers of the <out> tag, which simply evalutes and prints the result of the expression it's passed. If the result is null, we print the value of the 'default' attribute's expression or our body (which two are mutually exclusive, although this constraint is enforced outside this handler, in our TagLibraryValidator).
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
OutSupport()
Constructs a new handler.
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
After the body evaluation: do not reevaluate and continue with the page.
|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED.
|
protected abstract String |
evalDefault()
Evaluates the "default" attribute.
|
protected abstract boolean |
evalEscapeXml()
Evaluates the "escapeXml" attribute.
|
protected abstract Object |
evalValue()
Evaluates the "value" attribute.
|
void |
release()
Release state.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
public OutSupport()
public void release()
BodyTagSupport
release
in interface Tag
release
in class BodyTagSupport
Tag.release()
public int doStartTag() throws JspException
BodyTagSupport
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if an error occurred while processing this tagTag.doStartTag()
protected abstract Object evalValue() throws JspException
JspException
- if there was a problem evaluating the expressionprotected abstract String evalDefault() throws JspException
JspException
- if there was a problem evaluating the expressionprotected abstract boolean evalEscapeXml() throws JspException
JspException
- if there was a problem evaluating the expressionpublic int doAfterBody() throws JspException
BodyTagSupport
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if an error occurred while processing this tagBodyTagSupport.doInitBody()
,
IterationTag.doAfterBody()
public int doEndTag() throws JspException
BodyTagSupport
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if an error occurred while processing this tagTag.doEndTag()
Copyright © 2017 JBoss by Red Hat. All rights reserved.