public class HstLinkTag extends ParamContainerTag
Modifier and Type | Class and Description |
---|---|
static class |
HstLinkTag.TEI
TagExtraInfo class for HstURLTag.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
canonical
boolean indicating whether the link that will be created is the canonical link.
|
protected Boolean |
escapeXml |
protected boolean |
fallback
whether to fallback to normal linkrewriting when the preferSiteMapItem was not able to linkrewrite the item.
|
protected boolean |
fullyQualified |
protected IdentifiableContentBean |
identifiableContentBean |
protected HstLink |
link |
protected boolean |
linkForAttributeSet
Whether either the
link , path , identifiableContentBean or siteMapItemRefId did
have its setter called. |
protected String |
mountAlias
The alias of the mount the link is meant for
|
protected String |
mountType
The type of the mount the link is meant for
|
protected boolean |
navigationStateful
boolean indicating whether the link that will be created is wrt the current URL and virtual location of the jcr Node backing the HippoBean or wrt the canonical location.
|
protected String |
nodeId |
protected String |
path |
protected HstSiteMapItem |
preferSiteMapItem
if defined, first a link for this preferSiteMapItem is tried to be created.
|
protected String |
scope |
protected String |
siteMapItemRefId |
protected boolean |
skipTag |
protected String |
subPath |
static String |
UNALLOWED_ATTR_COMBINATION_MSG |
protected String |
var |
parametersMap, removedParametersList
Constructor and Description |
---|
HstLinkTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
int |
doEndTag() |
int |
doStartTag() |
Boolean |
getEscapeXml()
Returns escapeXml property.
|
IdentifiableContentBean |
getHippobean() |
HstLink |
getLink() |
String |
getMount() |
String |
getMountType() |
String |
getNodeId() |
String |
getPath() |
String |
getScope() |
String |
getSubPath() |
String |
getVar()
Returns the var property.
|
boolean |
isFullyQualified() |
void |
release() |
void |
setCanonical(boolean canonical) |
void |
setEscapeXml(Boolean escapeXml)
Sets the escapeXml property.
|
void |
setFallback(boolean fallback) |
void |
setFullyQualified(boolean fullyQualified) |
void |
setHippobean(IdentifiableContentBean identifiableContentBean) |
void |
setLink(HstLink hstLink) |
void |
setMount(String mount) |
void |
setMountType(String mountType) |
void |
setNavigationStateful(boolean navigationStateful) |
void |
setNodeId(String nodeId) |
void |
setPath(String path) |
void |
setPreferredSiteMapItem(HstSiteMapItem preferSiteMapItem) |
void |
setScope(String scope) |
void |
setSiteMapItemRefId(String siteMapItemRefId) |
void |
setSubPath(String subPath) |
void |
setVar(String var)
Sets the var property.
|
addParameter
public static final String UNALLOWED_ATTR_COMBINATION_MSG
protected HstLink link
protected IdentifiableContentBean identifiableContentBean
protected String nodeId
protected String path
protected String siteMapItemRefId
protected String subPath
protected String var
protected String scope
protected boolean fullyQualified
protected boolean canonical
protected boolean navigationStateful
canonical
: canonical
true or false refers to whether the link should be
created wrt the current url or not.protected String mountAlias
protected String mountType
protected boolean skipTag
protected HstSiteMapItem preferSiteMapItem
protected boolean fallback
protected boolean linkForAttributeSet
link
, path
, identifiableContentBean
or siteMapItemRefId
did
have its setter called. Also, only one of the setters is allowed. If none called, we return a hst link for the current
URLprotected Boolean escapeXml
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 String getScope()
public HstLink getLink()
public IdentifiableContentBean getHippobean()
public String getNodeId()
public String getPath()
public String getSubPath()
public Boolean getEscapeXml()
public void setLink(HstLink hstLink)
public void setFullyQualified(boolean fullyQualified)
public boolean isFullyQualified()
public void setPath(String path)
public void setSiteMapItemRefId(String siteMapItemRefId)
public void setSubPath(String subPath)
public void setCanonical(boolean canonical)
public void setNavigationStateful(boolean navigationStateful)
public void setHippobean(IdentifiableContentBean identifiableContentBean)
public void setNodeId(String nodeId)
public void setMount(String mount)
public String getMount()
public String getMountType()
public void setMountType(String mountType)
public void setVar(String var)
var
- The var to setpublic void setScope(String scope)
public void setEscapeXml(Boolean escapeXml)
escapeXml
- public void setPreferredSiteMapItem(HstSiteMapItem preferSiteMapItem)
public void setFallback(boolean fallback)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.