Package com.ibm.wsspi.http
Interface VirtualHost
- 
 public interface VirtualHostRepresentation of a VirtualHost
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddContextRoot(java.lang.String contextRoot, HttpContainer container)Add the container as a handler for the specified context root.java.util.List<java.lang.String>getAliases()java.util.Collection<java.lang.String>getAllowedFromEndpoints()java.lang.StringgetHostName(java.lang.String hostAlias)intgetHttpPort(java.lang.String hostAlias)java.lang.StringgetMimeType(java.lang.String extension)Retrieve MIME type for extensionjava.lang.StringgetName()The name of the virtual host.intgetSecureHttpPort(java.lang.String hostAlias)java.lang.StringgetUrlString(java.lang.String contextRoot, boolean securedPreferred)voidremoveContextRoot(java.lang.String contextRoot, HttpContainer container)Remove the container as a handler for the specified context root.
 
- 
- 
- 
Method Detail- 
getNamejava.lang.String getName() The name of the virtual host. The default virtual host name is "default_host".- Returns:
- Virtual host name
 
 - 
getMimeTypejava.lang.String getMimeType(java.lang.String extension) Retrieve MIME type for extension- Parameters:
- extension-
- Returns:
- mime type or null
 
 - 
addContextRootvoid addContextRoot(java.lang.String contextRoot, HttpContainer container)Add the container as a handler for the specified context root.- Parameters:
- contextRoot-
- container-
 
 - 
removeContextRootvoid removeContextRoot(java.lang.String contextRoot, HttpContainer container)Remove the container as a handler for the specified context root.- Parameters:
- contextRoot-
- container-
 
 - 
getAliasesjava.util.List<java.lang.String> getAliases() - Returns:
- the list of host:port aliases assigned to this virtual host.
 
 - 
getSecureHttpPortint getSecureHttpPort(java.lang.String hostAlias) - Parameters:
- hostAlias-
- Returns:
- secure https port associated with the given alias (via endpoint configuration), or -1 if unconfigured.
 
 - 
getHttpPortint getHttpPort(java.lang.String hostAlias) - Parameters:
- hostAlias-
- Returns:
- secure http port associated with the given alias (via endpoint configuration), or -1 if unconfigured.
 
 - 
getHostNamejava.lang.String getHostName(java.lang.String hostAlias) - Parameters:
- hostAlias-
- Returns:
- configured hostname associated with the given alias (via endpoint configuration).
 
 - 
getUrlStringjava.lang.String getUrlString(java.lang.String contextRoot, boolean securedPreferred)- 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.
 
 - 
getAllowedFromEndpointsjava.util.Collection<java.lang.String> getAllowedFromEndpoints() - Returns:
- the Collection of allowedFromEndpoints assigned to this virtual host.
 
 
- 
 
-