|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.core.linking.HstLinkImpl
public class HstLinkImpl
Field Summary |
---|
Fields inherited from interface org.hippoecm.hst.core.linking.HstLink |
---|
PATH_SUBPATH_DELIMITER |
Constructor Summary | |
---|---|
HstLinkImpl(String path,
Mount mount)
|
|
HstLinkImpl(String path,
Mount mount,
boolean containerResource)
|
|
HstLinkImpl(String path,
Mount mount,
boolean containerResource,
boolean rewriteHomePagePath)
|
Method Summary | |
---|---|
boolean |
getContainerResource()
|
Mount |
getMount()
|
String |
getPath()
Note: This is *not* a url! |
String[] |
getPathElements()
|
String |
getSubPath()
Returns the subPath of this HstLink object. |
boolean |
isNotFound()
When for example for some bean the (real) link cannot be created through the HstLinkCreator, a HstLink can be returned with a path that is for example from some configured property like '/pagenotfound'. |
void |
setContainerResource(boolean containerResource)
|
void |
setNotFound(boolean notFound)
|
void |
setPath(String path)
(re)-sets the path of the HstLink |
void |
setSubPath(String subPath)
sets the subPath of this HstLink . |
String |
toUrlForm(HstRequestContext requestContext,
boolean fullyQualified)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HstLinkImpl(String path, Mount mount)
public HstLinkImpl(String path, Mount mount, boolean containerResource)
public HstLinkImpl(String path, Mount mount, boolean containerResource, boolean rewriteHomePagePath)
Method Detail |
---|
public Mount getMount()
getMount
in interface HstLink
Mount
that can represent this link. This might be an Mount
which is a different one then the
Mount
the link was created in. This could result in a cross-domain (different hostname) link being created, depending
on the backing Mount.getVirtualHost()
. If no Mount
is set, null
can be returnedpublic String getPath()
HstLink
getPath
in interface HstLink
public void setPath(String path)
HstLink
setPath
in interface HstLink
public String getSubPath()
HstLink
HstLink
object. This part will be appended to the HstLink.getPath()
and delimited by ./
. It will be before the queryString.
Note that an empty String
subPath
will result in a URL having a ./
appended: An empty
subPath
is thus something different then a null
subPath
.
getSubPath
in interface HstLink
HstLink
object.public void setSubPath(String subPath)
HstLink
subPath
of this HstLink
. Note that setting the subPath
to an empty String
will result in a URL having a ./
appended: An empty
subPath
is thus something different then a null
subPath
.
setSubPath
in interface HstLink
public boolean getContainerResource()
getContainerResource
in interface HstLink
true
when the HstLink represents a container resource, like a repository binarypublic void setContainerResource(boolean containerResource)
setContainerResource
in interface HstLink
containerResource
- sets the containerResourcepublic String[] getPathElements()
getPathElements
in interface HstLink
HstLink.getPath()
splitted on slashespublic String toUrlForm(HstRequestContext requestContext, boolean fullyQualified)
toUrlForm
in interface HstLink
fullyQualified
- if true, the returned link is a fully qualified URL, in other words including http/https etc
public boolean isNotFound()
HstLink
true
it indicates that the link is some hardcoded path for beans that cannot be linked to
isNotFound
in interface HstLink
true
when this HstLink indicates to be a link that is actually a notFound linkpublic void setNotFound(boolean notFound)
setNotFound
in interface HstLink
notFound
- true whether this HstLink is actually a notFound link
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |