public interface ResolvedSiteMapItem
HstRequestContext
. It has a reference
to the HstSiteMapItem
that matched the request, and a reference to the corresponding HstComponentConfiguration
.
Just as the HstSiteMapItem
, this interface has the same methods getParameters()
and getParameter(String)
.
A ResolvedSiteMapItem implementation though does not have to return a unmodifiable map for getParameters()
as opposed to
the one from HstSiteMapItem.getParameters()
. Furthermore, typically a ResolvedSiteMapItem implementation returns the same
parameters as where on the HstSiteMapItem available, but resolves any property placeholders.
For example, if the HstSiteMapItem
that was used to create this ResolvedSiteMapItem
instance, had a property placeholder
in a parameter like : foo = ${1}
, then the ResolvedSiteMapItem
instance might have replaced ${1}
with something
from the pathInfo. The ResolvedSiteMapItem
is allowed to return null
values for parameters that do exist.Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
HstComponentConfiguration |
getHstComponentConfiguration() |
HstSiteMapItem |
getHstSiteMapItem() |
String |
getLocalParameter(String name)
See
getParameter(String) only without inheritance of ancestor items |
Properties |
getLocalParameters()
See
getParameters() only without inheritance of ancestor items |
String |
getNamedPipeline()
Returns the
namedPipeline to be used for the Hst Request Processing. |
String |
getPageTitle() |
String |
getParameter(String name)
Returns a property from the HstSiteMapItem configuration but should have replaced possible property placeholders.
|
Properties |
getParameters()
Return the parameter map from the HstSiteMapItem configuration, but all values containing property placeholders should be resolved.
|
String |
getPathInfo()
Returns a relative path from hst request path to the SiteMapItem that was matched.
|
String |
getRelativeContentPath()
This method returns a content path, relative to the
Mount.getContentPath() . |
ResolvedMount |
getResolvedMount() |
Set<String> |
getRoles() |
int |
getStatusCode() |
Set<String> |
getUsers() |
boolean |
isAuthenticated() |
ResolvedMount getResolvedMount()
ResolvedMount
for this resolvedSiteMapItem instanceString getRelativeContentPath()
Mount.getContentPath()
. This value should
have resolved property placeholders, like ${1}/${2}. If a property placeholder cannot be resolved, the implementation may return null
Mount.getContentPath()
or null
if not present or has unresolvable property placeholdersString getPathInfo()
ResolvedSiteMapItem
, relative to the mount pathString getPageTitle()
ResolvedSiteMapItem
or null
if not configured or configured incorrect:
An incorrect configuration is the case when there are property placeholders used for wildcards that cannot be resolved.String getParameter(String name)
null
. Parameters are inherited from ancestor items,
but in case of the same name, ancestor items have a lower precedencename
- the name of the parameternull
if the parameter is not there or a property placeholder cannot be resolvedString getLocalParameter(String name)
getParameter(String)
only without inheritance of ancestor itemsname
- the name of the parameternull
if the parameter is not there or a property placeholder cannot be resolvedProperties getParameters()
Properties getLocalParameters()
getParameters()
only without inheritance of ancestor itemsHstSiteMapItem getHstSiteMapItem()
HstSiteMapItem
that is matched for this requestString getNamedPipeline()
namedPipeline
to be used for the Hst Request Processing. When the backing HstSiteMapItem
does not contain one,
possibly, when present, it is inherited from its backing Mount
. If this one does not have it either, null
is returned
implying the default pipeline will be callednamedPipeline
for this ResolvedSiteMapItem or null
implying the default should be usedint getStatusCode()
HstSiteMapItem.getStatusCode()
int getErrorCode()
HstSiteMapItem.getErrorCode()
boolean isAuthenticated()
true
if getRoles()
should be applied to this ResolvedSiteMap itemSet<String> getRoles()
Set<String> getUsers()
HstComponentConfiguration getHstComponentConfiguration()
HstComponentConfiguration
that is configured on the backing getHstSiteMapItem()
of this ResolvedSiteMapItemCopyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.