java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingBufferedTag
com.aoapps.taglib.UrlTag
- All Implemented Interfaces:
ParamsAttribute,DynamicAttributes,JspTag,SimpleTag
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a parameter.voiddoTag()Deprecated.protected voiddoTag(BufferResult capturedBody, 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.EncodingBufferedTag
getTempFileThreshold, invoke, newBufferWriter, newBufferWriter, newBufferWriter, newBufferWriter, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffixMethods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aoapps.taglib.ParamsAttribute
addParam
-
Constructor Details
-
UrlTag
public UrlTag()
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein classEncodingBufferedTag
-
getOutputType
- Specified by:
getOutputTypein classEncodingBufferedTag
-
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:
-
doTag
Deprecated.- Specified by:
doTagin interfaceSimpleTag- Overrides:
doTagin classEncodingBufferedTag- Throws:
JspExceptionIOException
-
doTag
- Overrides:
doTagin classEncodingBufferedTag- Throws:
JspExceptionIOException
-
