com.ibm.wsspi.http

Interface VirtualHost


  1. public interface VirtualHost
Represenation of a

Method Summary

Modifier and Type Method and Description
  1. void
addContextRoot(java.lang.String contextRoot,HttpContainer container)
Add the container as a handler for the specified context root.
  1. java.util.List<java.lang.String>
getAliases()
  1. java.lang.String
getHostName(java.lang.String hostAlias)
  1. int
getHttpPort(java.lang.String hostAlias)
  1. java.lang.String
getMimeType(java.lang.String extension)
Retrieve MIME type for extension
  1. java.lang.String
getName()
The name of the virtual host.
  1. int
getSecureHttpPort(java.lang.String hostAlias)
  1. java.lang.String
getUrlString(java.lang.String contextRoot,boolean securedPreferred)
  1. void
removeContextRoot(java.lang.String contextRoot,HttpContainer container)
Remove the container as a handler for the specified context root.

Method Detail

getName

  1. java.lang.String getName()
The name of the virtual host. The default virtual host name is "default_host".
Returns:
Virtual host name

getMimeType

  1. java.lang.String getMimeType(java.lang.String extension)
Retrieve MIME type for extension
Parameters:
extension -
Returns:
mime type or null

addContextRoot

  1. void addContextRoot(java.lang.String contextRoot,
  2. HttpContainer container)
Add the container as a handler for the specified context root.
Parameters:
contextRoot -
container -

removeContextRoot

  1. void removeContextRoot(java.lang.String contextRoot,
  2. HttpContainer container)
Remove the container as a handler for the specified context root.
Parameters:
contextRoot -
container -

getAliases

  1. java.util.List<java.lang.String> getAliases( )
Returns:

getSecureHttpPort

  1. int getSecureHttpPort(java.lang.String hostAlias)
Parameters:
hostAlias -
Returns:
secure https port associated with the given alias (via endpoint configuration), or -1 if unconfigured.

getHttpPort

  1. int getHttpPort(java.lang.String hostAlias)
Parameters:
hostAlias -
Returns:
secure http port associated with the given alias (via endpoint configuration), or -1 if unconfigured.

getHostName

  1. java.lang.String getHostName(java.lang.String hostAlias)
Parameters:
hostAlias -
Returns:
configured hostname associated with the given alias (via endpoint configuration).

getUrlString

  1. java.lang.String getUrlString(java.lang.String contextRoot,
  2. 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.