public abstract class BaseHstURLTag extends ParamContainerTag
Modifier and Type | Class and Description |
---|---|
static class |
BaseHstURLTag.TEI
TagExtraInfo class for HstURLTag.
|
Modifier and Type | Field and Description |
---|---|
protected Boolean |
escapeXml |
protected boolean |
fullyQualified |
protected String |
resourceId |
protected String |
var |
parametersMap, removedParametersList
Constructor and Description |
---|
BaseHstURLTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
int |
doEndTag() |
protected String |
doEscapeXml(String str)
Replaces in String str the characters &,>,<,",'
with their corresponding character entity codes.
|
int |
doStartTag() |
Boolean |
getEscapeXml()
Returns escapeXml property.
|
String |
getResourceId()
Returns resource ID property
|
protected abstract HstURL |
getUrl() |
String |
getVar()
Returns the var property.
|
boolean |
isFullyQualified()
Returns true if the generated URL should be a fully qualified URL,
starting with 'http://' or 'https://', etc.
|
void |
release() |
void |
setEscapeXml(Boolean escapeXml)
Sets the escapeXml property.
|
void |
setFullyQualified(boolean fullyQualified)
Sets the flag to generate URL as a fully qualified URL,
starting with 'http://' or 'https://', etc.
|
void |
setResourceId(String resourceId)
Sets the resource ID property.
|
protected abstract void |
setUrl(HstURL url) |
protected void |
setUrlParameters(HstURL url)
Copies the parameters from map to the BaseURL.
|
void |
setVar(String var)
Sets the var property.
|
addParameter
protected String var
protected Boolean escapeXml
protected String resourceId
protected boolean fullyQualified
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class ParamContainerTag
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
protected void cleanup()
cleanup
in class ParamContainerTag
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public String getVar()
public Boolean getEscapeXml()
public String getResourceId()
public boolean isFullyQualified()
public void setVar(String var)
var
- The var to setpublic void setEscapeXml(Boolean escapeXml)
escapeXml
- public void setResourceId(String resourceId)
resourceId
- public void setFullyQualified(boolean fullyQualified)
protected void setUrlParameters(HstURL url)
url
- BaseURLprotected abstract HstURL getUrl()
protected abstract void setUrl(HstURL url)
url
- the url to setCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.