org.hippoecm.hst.configuration.hosting
Interface MutableVirtualHosts

All Superinterfaces:
VirtualHosts
All Known Implementing Classes:
VirtualHostsService

public interface MutableVirtualHosts
extends VirtualHosts


Method Summary
 void addMount(Mount mount)
          Add this mount for lookup through VirtualHosts.getMountByGroupAliasAndType(String, String, String)
 void addVirtualHost(MutableVirtualHost virtualHost)
          Adds the virtualHost as child to this MutableVirtualHosts
 Map<String,Map<String,MutableVirtualHost>> getRootVirtualHostsByGroup()
          The root virtualhosts are the first segment of a host.
 
Methods inherited from interface org.hippoecm.hst.configuration.hosting.VirtualHosts
getChannelManagerHostGroupName, getChannelManagerSitesName, getCmsPreviewPrefix, getDefaultContextPath, getDefaultHostName, getHostGroupNames, getHstManager, getLocale, getMountByGroupAliasAndType, getMountByIdentifier, getMountsByHostGroup, isContextPathInUrl, isExcluded, isPortInUrl, matchMount, matchSiteMapItem, matchVirtualHost
 

Method Detail

addMount

void addMount(Mount mount)
              throws ServiceException
Add this mount for lookup through VirtualHosts.getMountByGroupAliasAndType(String, String, String)

Parameters:
mount -
Throws:
ServiceException

addVirtualHost

void addVirtualHost(MutableVirtualHost virtualHost)
                    throws IllegalArgumentException
Adds the virtualHost as child to this MutableVirtualHosts

Parameters:
virtualHost - the MutableVirtualHost to add
Throws:
IllegalArgumentException - if the virtualHost could not be added

getRootVirtualHostsByGroup

Map<String,Map<String,MutableVirtualHost>> getRootVirtualHostsByGroup()
The root virtualhosts are the first segment of a host. For example just 'com', or just 'org'. In case of an IP adres, for for example the hostName 127.0.0.1, the root virtualhost will be '1'

Returns:
all the root virtualhosts by hostgroup


Copyright © 2008-2012 Hippo. All Rights Reserved.