org.hippoecm.hst.site.request
Class ResolvedVirtualHostImpl

java.lang.Object
  extended by org.hippoecm.hst.site.request.ResolvedVirtualHostImpl
All Implemented Interfaces:
ResolvedVirtualHost

public class ResolvedVirtualHostImpl
extends Object
implements ResolvedVirtualHost

ResolvedVirtualHostImpl

Version:
$Id$

Constructor Summary
ResolvedVirtualHostImpl(VirtualHost virtualHost, String hostName, PortMount portMount)
           
 
Method Summary
 int getPortNumber()
          the portNumber that resolved to this ResolvedVirtualHost.
 String getResolvedHostName()
          the hostName that resolved to this ResolvedVirtualHost.
 VirtualHost getVirtualHost()
           
 ResolvedMount matchMount(String contextPath, String requestPath)
          matches the current requestPath and resolved virtual host to a ResolvedMount item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolvedVirtualHostImpl

public ResolvedVirtualHostImpl(VirtualHost virtualHost,
                               String hostName,
                               PortMount portMount)
Method Detail

getVirtualHost

public VirtualHost getVirtualHost()
Specified by:
getVirtualHost in interface ResolvedVirtualHost
Returns:
the backing virtual host of this ResolvedVirtualHost

matchMount

public ResolvedMount matchMount(String contextPath,
                                String requestPath)
                         throws MatchException
Description copied from interface: ResolvedVirtualHost
matches the current requestPath and resolved virtual host to a ResolvedMount item. When the contextPath param is not null it might influence the matching, depending whether Mount.onlyForContextPath() is not null

Specified by:
matchMount in interface ResolvedVirtualHost
Parameters:
contextPath - the contextPath if needed for matching. This parameter is allowed to be null
Returns:
a ResolvedMount or null when none matches
Throws:
MatchException

getResolvedHostName

public String getResolvedHostName()
Description copied from interface: ResolvedVirtualHost
the hostName that resolved to this ResolvedVirtualHost. Note that this might be different then the one in VirtualHost.getHostName() as this hostName might contain not yet filled in wildcards.

Specified by:
getResolvedHostName in interface ResolvedVirtualHost
Returns:
the hostName that resolved to this ResolvedVirtualHost
See Also:
VirtualHost.getHostName()

getPortNumber

public int getPortNumber()
Description copied from interface: ResolvedVirtualHost
the portNumber that resolved to this ResolvedVirtualHost.

Specified by:
getPortNumber in interface ResolvedVirtualHost
Returns:
the portNumber that resolved to this ResolvedVirtualHost


Copyright © 2008-2012 Hippo. All Rights Reserved.