Package com.ibm.wsspi.http
Interface VirtualHost
public interface VirtualHost
Representation of a VirtualHost
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddContextRoot(String contextRoot, HttpContainer container) Add the container as a handler for the specified context root.getHostName(String hostAlias) intgetHttpPort(String hostAlias) getMimeType(String extension) Retrieve MIME type for extensiongetName()The name of the virtual host.intgetSecureHttpPort(String hostAlias) getUrlString(String contextRoot, boolean securedPreferred) voidremoveContextRoot(String contextRoot, HttpContainer container) Remove the container as a handler for the specified context root.
- 
Method Details- 
getNameString getName()The name of the virtual host. The default virtual host name is "default_host".- Returns:
- Virtual host name
 
- 
getMimeTypeRetrieve MIME type for extension- Parameters:
- extension-
- Returns:
- mime type or null
 
- 
addContextRootAdd the container as a handler for the specified context root.- Parameters:
- contextRoot-
- container-
 
- 
removeContextRootRemove the container as a handler for the specified context root.- Parameters:
- contextRoot-
- container-
 
- 
getAliases- Returns:
- the list of host:port aliases assigned to this virtual host.
 
- 
getSecureHttpPort- Parameters:
- hostAlias-
- Returns:
- secure https port associated with the given alias (via endpoint configuration), or -1 if unconfigured.
 
- 
getHttpPort- Parameters:
- hostAlias-
- Returns:
- secure http port associated with the given alias (via endpoint configuration), or -1 if unconfigured.
 
- 
getHostName- Parameters:
- hostAlias-
- Returns:
- configured hostname associated with the given alias (via endpoint configuration).
 
- 
getUrlString- Parameters:
- contextRoot-
- securedPreferred- indicates if the caller prefers to receive a secured URL
- Returns:
- corresponding URL string by combining the given contextRoot and endpoint configuration for this VirtualHost.
 
- 
getAllowedFromEndpointsCollection<String> getAllowedFromEndpoints()- Returns:
- the Collection of allowedFromEndpoints assigned to this virtual host.
 
 
-