public void addVirtualHost ( String hostname ) { // Note that null hosts are also added. if ( ! _vhosts . contains ( hostname ) ) { _vhosts . add ( hostname ) ; _contextName = null ; if ( _httpServer != null ) { if ( _vhosts . size ( ) == 1 ) _httpServer . removeMapping ( null , this ) ; _httpServer . addMapping ( hostname , this ) ; } _vhostsArray = null ; } }
Add a virtual host alias to this context .