- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- com.aoapps.encoding.taglib.EncodingBufferedTag
-
- com.newmediaworks.taglib.email.ContentTag
-
public class ContentTag extends EncodingBufferedTag
The body of this tag provides the content to the email or any of its parts.- Author:
- New Media Works
- See Also:
Part.setContent(java.lang.Object, java.lang.String)
-
-
Field Summary
Fields Modifier and Type Field Description static ScopeEE.Page.Attribute<String>
STRUTS_XHTML_KEY
The old Struts 1 XHTML mode page attribute.static String
TAG_NAME
-
Constructor Summary
Constructors Constructor Description ContentTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doTag(BufferResult capturedBody, Writer out)
MediaType
getContentType()
MediaType
getOutputType()
protected void
invoke(JspFragment body, MediaValidator captureValidator)
void
setDoctype(String doctype)
void
setSerialization(String serialization)
void
setType(String type)
Sets the type.-
Methods inherited from class com.aoapps.encoding.taglib.EncodingBufferedTag
doTag, getTempFileThreshold, newBufferWriter, newBufferWriter, newBufferWriter, newBufferWriter, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
-
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
-
-
-
Field Detail
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
STRUTS_XHTML_KEY
public static final ScopeEE.Page.Attribute<String> STRUTS_XHTML_KEY
The old Struts 1 XHTML mode page attribute. To avoiding picking-up a big legacy dependency, we've copied the value here instead of depending on Globals. Once we no longer have any code running on old Struts, this value may be removed.
-
-
Method Detail
-
getContentType
public MediaType getContentType()
- Specified by:
getContentType
in classEncodingBufferedTag
-
getOutputType
public MediaType getOutputType()
- Specified by:
getOutputType
in classEncodingBufferedTag
-
setType
public void setType(String type)
Sets the type.
-
setSerialization
public void setSerialization(String serialization)
-
setDoctype
public void setDoctype(String doctype)
-
invoke
protected void invoke(JspFragment body, MediaValidator captureValidator) throws JspException, IOException
- Overrides:
invoke
in classEncodingBufferedTag
- Throws:
JspException
IOException
-
doTag
protected void doTag(BufferResult capturedBody, Writer out) throws JspException, IOException
- Overrides:
doTag
in classEncodingBufferedTag
- Throws:
JspException
IOException
-
-