|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResolvedSiteMapItem
An instance of the implementation of this interface will be available on the
. It has a reference
to the HstRequestContext
that matched the request, and a reference to the corresponding HstSiteMapItem
.
HstComponentConfiguration
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.
Method Summary | |
---|---|
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 |
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. |
HstComponentConfiguration |
getPortletHstComponentConfiguration()
|
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()
|
Method Detail |
---|
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 getParameter(String name)
null
. Parameters are inherited from ancestor items,
but in case of the same name, ancestor items have a lower precedence
name
- the name of the parameter
null
if the parameter is not there or a property placeholder cannot be resolvedString getLocalParameter(String name)
getParameter(String)
only without inheritance of ancestor items
name
- the name of the parameter
null
if the parameter is not there or a property placeholder cannot be resolvedProperties getParameters()
Properties getLocalParameters()
getParameters()
only without inheritance of ancestor items
HstSiteMapItem 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 called
namedPipeline
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 ResolvedSiteMapItemHstComponentConfiguration getPortletHstComponentConfiguration()
HstComponentConfiguration
for portlet that is found through getHstSiteMapItem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |