public interface ResolvedVirtualHost
VirtualHost
object, where possible wildcard property placeholders have been filled in, similar
to the ResolvedMount
and Mount
Modifier and Type | Method and Description |
---|---|
int |
getPortNumber()
Deprecated.
since HST 2.28.00 (CMS 7.9.0) use
ResolvedMount.getPortNumber()
instead |
String |
getResolvedHostName()
Deprecated.
since HST 2.28.00 (CMS 7.9.0) use
getVirtualHost() #VirtualHost.getHostName()
instead |
VirtualHost |
getVirtualHost() |
ResolvedMount |
matchMount(String contextPath,
String requestPath)
This method tries to match the current
ResolvedVirtualHost for
contextPath and requestPath to a flyweight ResolvedMount . |
VirtualHost getVirtualHost()
@Deprecated String getResolvedHostName()
getVirtualHost()
#VirtualHost.getHostName()
insteadVirtualHost.getHostName()
as this
hostName might contain not yet filled in wildcards.VirtualHost.getHostName()
@Deprecated int getPortNumber()
ResolvedMount.getPortNumber()
insteadResolvedMount matchMount(String contextPath, String requestPath) throws MatchException
This method tries to match the current ResolvedVirtualHost
for
contextPath and requestPath to a flyweight ResolvedMount
.
If Mount.getContentPath()
()} returns a non-null value,
the Mount
can only match for the request if the HttpServletRequest.getContextPath()
is equal to Mount.getContextPath()
. Note that the ROOT.war matches
to a Mount.getContextPath()
equal to empty String. When Mount.getContextPath()
returns null
the HttpServletRequest.getContextPath()
is ignored for matching.
contextPath
- the contextPath of the HttpServletRequest
requestPath
- ResolvedMount
for this hstContainerUrl or null
when it can not be matched to a
Mount
MatchException
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.