java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.aoapps.encoding.taglib.legacy.EncodingBufferedBodyTag
com.aoapps.taglib.legacy.UrlTag
- All Implemented Interfaces:
ParamsAttribute,Serializable,BodyTag,DynamicAttributes,IterationTag,JspTag,Tag,TryCatchFinally
TODO: Replace uses of encoding:text with this as it is now more appropriate for sending dynamic parameters to JavaScript since it calls encodeURL.
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a parameter.protected intdoEndTag(BufferResult capturedBody, Writer out) voidprotected intdoStartTag(Writer out) voidsetAbsolute(boolean absolute) voidsetAddLastModified(String addLastModified) voidsetCanonical(boolean canonical) voidsetDynamicAttribute(String uri, String localName, Object value) Methods inherited from class com.aoapps.encoding.taglib.legacy.EncodingBufferedBodyTag
doAfterBody, doAfterBody, doCatch, doEndTag, doInitBody, doStartTag, getTempFileThreshold, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffixMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aoapps.taglib.ParamsAttribute
addParamMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
UrlTag
public UrlTag()
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein classEncodingBufferedBodyTag
-
getOutputType
- Specified by:
getOutputTypein classEncodingBufferedBodyTag
-
addParam
Description copied from interface:ParamsAttributeAdds a parameter.The conversion to string may be deferred, or the value may be streamed instead of being converted to a string. It is incorrect to change the state of the provided value; doing so may or may not affect the value of the resulting parameter.
When the value is an
Enum, the parameter value is obtained fromEnum.name()instead ofEnum.toString(). This is to intuitively use enums as parameters whenEnum.toString()is overridden.Default method is for backward compatibility only. Implementations should override this version.
- Specified by:
addParamin interfaceParamsAttribute
-
setAbsolute
public void setAbsolute(boolean absolute) -
setCanonical
public void setCanonical(boolean canonical) -
setAddLastModified
-
setDynamicAttribute
- Specified by:
setDynamicAttributein interfaceDynamicAttributes- Throws:
JspException- See Also:
-
doStartTag
- Overrides:
doStartTagin classEncodingBufferedBodyTag- Throws:
JspExceptionIOException
-
doEndTag
- Overrides:
doEndTagin classEncodingBufferedBodyTag- Throws:
JspExceptionIOException
-
doFinally
public void doFinally()- Specified by:
doFinallyin interfaceTryCatchFinally- Overrides:
doFinallyin classEncodingBufferedBodyTag
-
