Package com.day.cq.wcm.tags
Class RequestURLTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.day.cq.wcm.tags.RequestURLTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class RequestURLTag extends javax.servlet.jsp.tagext.TagSupportRequestURLTagwrites the current request URL to the current JspWriter. The body of this tag allows multiple addParam and removeParam tags to modify the current request URL before it is written.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestURLTag()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParam(java.lang.String name, java.lang.String value)Adds a parameter with the givennameandvalue.intdoEndTag()intdoStartTag()voidrelease()voidremoveParam(java.lang.String name)Removes the parameter and all its values with the givenname.voidremoveParam(java.lang.String name, java.lang.String value)Removes a value from the parameter with the givenname.
-
-
-
Method Detail
-
removeParam
public void removeParam(java.lang.String name)
Removes the parameter and all its values with the givenname.- Parameters:
name- the name of the parameter.
-
removeParam
public void removeParam(java.lang.String name, java.lang.String value)Removes a value from the parameter with the givenname.- Parameters:
name- name of the parameter.value- the value to remove.
-
addParam
public void addParam(java.lang.String name, java.lang.String value)Adds a parameter with the givennameandvalue.- Parameters:
name- the name of the parameter.value- the value for the parameter.
-
release
public void release()
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.TagSupport
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
-