java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.aoapps.encoding.taglib.legacy.EncodingNullBodyTag
com.aoapps.encoding.taglib.legacy.OutTag
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
While the outJspWriter
is still replaced to output the proper content type, this version ofEncodingNullBodyTag.doEndTag()
is called.void
Gets the output type of this tag.void
void
void
protected void
writePrefix
(MediaType containerType, Writer out) Writes any prefix in the container's media type.protected void
writeSuffix
(MediaType containerType, Writer out) Writes any suffix in the container's media type.Methods inherited from class com.aoapps.encoding.taglib.legacy.EncodingNullBodyTag
doAfterBody, doAfterBody, doCatch, doEndTag, doInitBody, doStartTag, doStartTag, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, 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
-
Constructor Details
-
OutTag
public OutTag()
-
-
Method Details
-
getOutputType
Description copied from class:EncodingNullBodyTag
Gets the output type of this tag. This is used to determine the correct encoder. If the tag never has any output this should returnnull
. Whennull
is returned, any output will result in an error.- Specified by:
getOutputType
in classEncodingNullBodyTag
-
setValue
-
setDefault
-
setType
-
writePrefix
Description copied from class:EncodingNullBodyTag
Writes any prefix in the container's media type. The output must be valid for the provided type. This will not be called when the initial output type is
null
.This default implementation prints nothing.
- Overrides:
writePrefix
in classEncodingNullBodyTag
- Parameters:
out
- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
.- Throws:
JspException
IOException
- See Also:
-
doEndTag
Description copied from class:EncodingNullBodyTag
While the outJspWriter
is still replaced to output the proper content type, this version ofEncodingNullBodyTag.doEndTag()
is called.- Overrides:
doEndTag
in classEncodingNullBodyTag
- Parameters:
out
- When the output type isnull
, will throw an exception if anything written, otherwise validates all characters against the output type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
.- Returns:
- Must return either
Tag.EVAL_PAGE
(the default) orTag.SKIP_PAGE
- Throws:
JspException
IOException
-
writeSuffix
Description copied from class:EncodingNullBodyTag
Writes any suffix in the container's media type. The output must be valid for the provided type. This will not be called when the initial output type is
null
.This default implementation prints nothing.
- Overrides:
writeSuffix
in classEncodingNullBodyTag
- Parameters:
out
- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
.- Throws:
JspException
IOException
- See Also:
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
- Overrides:
doFinally
in classEncodingNullBodyTag
-