Package com.aoindustries.encoding.taglib
Class OutTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- com.aoindustries.encoding.taglib.EncodingNullTag
-
- com.aoindustries.encoding.taglib.OutTag
-
public class OutTag extends EncodingNullTag
- Author:
- AO Industries, Inc.
-
-
Constructor Summary
Constructors Constructor Description OutTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doTag(Writer out)
Once the outJspWriter
has been replaced to output the proper content type, this version ofEncodingNullTag.doTag()
is called.MediaType
getOutputType()
Gets the output type of this tag.void
setDefault(ValueExpression def)
void
setType(String type)
void
setValue(Object value)
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.aoindustries.encoding.taglib.EncodingNullTag
doTag, invoke, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix
-
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
-
-
-
Method Detail
-
getOutputType
public MediaType getOutputType()
Description copied from class:EncodingNullTag
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 classEncodingNullTag
-
setValue
public void setValue(Object value)
-
setDefault
public void setDefault(ValueExpression def)
-
setType
public void setType(String type)
-
writePrefix
protected void writePrefix(MediaType containerType, Writer out) throws JspException, IOException
Description copied from class:EncodingNullTag
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 output type is
null
.This default implementation prints nothing.
- Overrides:
writePrefix
in classEncodingNullTag
- Throws:
JspException
IOException
- See Also:
EncodingNullTag.getOutputType()
-
doTag
protected void doTag(Writer out) throws JspException, IOException
Description copied from class:EncodingNullTag
Once the outJspWriter
has been replaced to output the proper content type, this version ofEncodingNullTag.doTag()
is called.The body, if present, has already been invoked and any output discarded.
This default implementation does nothing.
- Overrides:
doTag
in classEncodingNullTag
- Throws:
JspException
IOException
-
writeSuffix
protected void writeSuffix(MediaType containerType, Writer out) throws JspException, IOException
Description copied from class:EncodingNullTag
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 output type is
null
.This default implementation prints nothing.
- Overrides:
writeSuffix
in classEncodingNullTag
- Throws:
JspException
IOException
- See Also:
EncodingNullTag.getOutputType()
-
-