com.ibm.portal.state.accessors.url
Interface ServerContext

All Known Subinterfaces:
PocServerContext

public interface ServerContext

Abstraction of the configuration required for server context information. Clients can implement this interface in cases where the server context information is not available from any request.

Since:
5.1
Note:
This interface is designed to be implemented by clients.

Method Summary
 java.lang.String getContextPath()
          Returns the context path.
 java.lang.String getHomeProtected()
          Returns the protected home directory.
 java.lang.String getHomePublic()
          Returns the public home directory.
 java.lang.String getHostName()
          Returns the hostname.
 java.lang.String getHostPortHTTP()
          Returns the host port for HTTP.
 java.lang.String getHostPortHTTPS()
          Returns the host port for HTTPS.
 java.nio.charset.Charset getURLCharset()
          Returns the characterset of the URL.
 

Method Detail

getHostPortHTTP

java.lang.String getHostPortHTTP()
Returns the host port for HTTP.

Returns:
port for HTTP (e.g. "80")

getHostPortHTTPS

java.lang.String getHostPortHTTPS()
Returns the host port for HTTPS.

Returns:
port for HTTPS (e.g. "443")

getHostName

java.lang.String getHostName()
Returns the hostname.

Returns:
hostname without protocol or port (e.g. "www.ibm.com")

getContextPath

java.lang.String getContextPath()
Returns the context path.

Returns:
context path including the starting slash (e.g. "/wps")

getHomePublic

java.lang.String getHomePublic()
Returns the public home directory.

Returns:
public home directory including the starting slash (e.g. "/portal")

getHomeProtected

java.lang.String getHomeProtected()
Returns the protected home directory.

Returns:
proctected home directory including the starting slash (e.g. "/myportal")

getURLCharset

java.nio.charset.Charset getURLCharset()
Returns the characterset of the URL.

Returns:
the characterset that should be used for the URL encoding