Package org.hippoecm.hst.core.request
Interface ResolvedMount
- All Known Subinterfaces:
MutableResolvedMount
public interface ResolvedMount
Implementations of this interface are a request flyweight instance of the
Mount
object, where possible wildcard property placeholders have been filled in, similar
to the ResolvedSiteMapItem
and HstSiteMapItem
-
Method Summary
Modifier and TypeMethodDescriptionReturns FORM Login PageExpert: In most circumstance, thisgetMatchingIgnoredPrefix()
will returnnull
.getMount()
int
Returns the mountPath from the backingMount
where possible wildcard values might have been replaced.getRoles()
Returns the roles that are allowed to access this Mount whenisAuthenticated()
is true.getUsers()
Returns the users that are allowed to access this Mount whenisAuthenticated()
is true.boolean
If this method returns true, then only if the user is explicitly allowed orservletRequest.isUserInRole(role)
returnstrue
this Mount is accessible for the request.boolean
Returns true if subject based jcr session should be statefully managed.boolean
Returns true if subject based jcr session should be used for this MountmatchSiteMapItem
(String siteMapPathInfo) matches a pathInfo to aResolvedSiteMapItem
item or throws aMatchException
orNotFoundException
when cannot resolve to a sitemap item
-
Method Details
-
getPortNumber
int getPortNumber()- Returns:
- the port number of the host that was used during matching to this
ResolvedMount
-
getMount
Mount getMount()- Returns:
- the backing request independent
Mount
item for thisResolvedMount
instance
-
getNamedPipeline
String getNamedPipeline()- Returns:
- the named pipeline to be used for this
Mount
ornull
when the default pipeline is to be used
-
getResolvedMountPath
String getResolvedMountPath()Returns the mountPath from the backingMount
where possible wildcard values might have been replaced. Aroot
Mount
returns an emptyString
(""). When the mountPath is non-empty, it always starts with a"/"
.- Returns:
- the resolved mountPath for this
ResolvedMount
- See Also:
-
getMatchingIgnoredPrefix
String getMatchingIgnoredPrefix()Expert: In most circumstance, thisgetMatchingIgnoredPrefix()
will returnnull
. Only when there was a pathInfo prefix after theHttpServletRequest.getContextPath()
that should be ignored during matching the request to aResolvedMount
, this method returns the ignored prefix. The returned String must have leading and trailing slashes all removed.- Returns:
- the prefix that was ignore during matching and
null
if there wasn't a ignored prefix
-
matchSiteMapItem
matches a pathInfo to aResolvedSiteMapItem
item or throws aMatchException
orNotFoundException
when cannot resolve to a sitemap item- Parameters:
siteMapPathInfo
-- Returns:
- the ResolvedSiteMapItem for the current hstContainerURL
- Throws:
MatchException
-
isAuthenticated
boolean isAuthenticated()If this method returns true, then only if the user is explicitly allowed orservletRequest.isUserInRole(role)
returnstrue
this Mount is accessible for the request. If a Mount does not have a configuration for authenticated, the value from the parent item is taken.- Returns:
true
if the Mount is authenticated.
-
getRoles
Returns the roles that are allowed to access this Mount whenisAuthenticated()
is true. If the Mount does not have any roles defined by itself, it inherits them from the parent. If it defines roles, the roles from any ancestor are ignored. An empty set of roles in combination withisAuthenticated()
returntrue
means nobody has access to the item- Returns:
- The set of roles that are allowed to access this Mount. When no roles defined, the roles from the parent item are inherited. If none of the parent items have a role defined, an empty set is returned
-
getUsers
Returns the users that are allowed to access this Mount whenisAuthenticated()
is true. If the Mount does not have any users defined by itself, it inherits them from the parent. If it defines users, the users from any ancestor are ignored. An empty set of users in combination withisAuthenticated()
returntrue
means nobody has access to the item- Returns:
- The set of users that are allowed to access this Mount. When no users defined, the users from the parent item are inherited. If none of the parent items have a user defined, an empty set is returned
-
isSubjectBasedSession
boolean isSubjectBasedSession()Returns true if subject based jcr session should be used for this Mount- Returns:
- true if subject based jcr session should be used for this Mount
-
isSessionStateful
boolean isSessionStateful()Returns true if subject based jcr session should be statefully managed.- Returns:
- true if subject based jcr session should be statefully managed.
-
getFormLoginPage
String getFormLoginPage()Returns FORM Login Page- Returns:
true
if the Mount is authenticated.
-