Class sun.server.http.HttpServerParameters
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.http.HttpServerParameters

java.lang.Object
   |
   +----sun.server.ServerParameters
           |
           +----sun.server.http.HttpServerParameters

public class HttpServerParameters
extends ServerParameters
This class provides access to HTTP server parameters.

Variable Index

 o adminRoot
Admin root
 o DEFAULT_ADMIN_ROOT
 o DEFAULT_DOC_ROOT
 o DEFAULT_ENABLE_ACLS
 o DEFAULT_ENABLE_LOADING
 o DEFAULT_ENABLE_PROXY
 o DEFAULT_ENABLE_VIRTUAL_HOSTS
 o DEFAULT_KEEP_ALIVE_COUNT
 o DEFAULT_KEEP_ALIVE_TIMEOUT
 o DEFAULT_NT_SERVICE
 o DEFAULT_RAM_CACHE_ENTRY_SIZE
 o DEFAULT_WELCOME
 o docRoot
Doc root.
 o enableAcls
If true then ACLs should be enabled.
 o enableProxy
If true then proxy servlet should be enabled.
 o enableUrlLoading
If true then loading via URLs should be enabled
 o enableVirtualHosts
virtual host enabled switch.
 o keepAliveCount
The keep-alive count.
 o keepAliveTimeout
The keep-alive timeout.
 o ntservice
Switch to enable/disable running as NT Service on NT platform.
 o ramCacheEntrySize
The RAM cache entry size for file servlet.
 o welcome
The welcome page.

Constructor Index

 o HttpServerParameters()
Creates new HTTP server parameters.
 o HttpServerParameters(ExProperties)
Creates new HTTP server parameters initialized from properties.

Method Index

 o addVirtualConfig(String, String)
Adds the virtual host name and associated docroot to the properties
 o deleteVirtualConfig(String)
Deletes the virtual host name from the properties
 o getAdminRoot()
Returns the admin root for this set of virtual hosts.
 o getDocRoot(String)
Returns the doc root for the host.
 o getEnableAcls()
Returns true if ACLs are enabled.
 o getEnableProxy()
Returns true if proxies are enabled.
 o getEnableUrlLoading()
Returns true if ACLs are enabled.
 o getEnableVirtualHosts()
Returns true if virtual hosts are enabled.
 o getKeepAliveCount()
Returns the keep-alive count.
 o getKeepAliveTimeout()
Returns the keep-alive timeout.
 o getNtService()
Returns true if NT Service is enabled.
 o getRamCacheEntrySize()
Returns the RAM cache entry size.
 o getVirtualConfig()
Returns the name value pairs for virtual hosts separated by a newline The first pair is "doc.root" and the current docRoot
 o getWelcome()
Returns welcome page.
 o load(ExProperties)
Loads parameters from properties.
 o save(ExProperties)
Saves parameters to properties.
 o setAdminRoot(String)
Sets admin root for this set of virtual hosts.
 o setDocRoot(String, String)
Sets doc root for various hosts.
 o setEnableAcls(boolean)
Sets whether ACLs are enabled.
 o setEnableProxy(boolean)
Sets proxy switch
 o setEnableUrlLoading(boolean)
Sets whether ACLs are enabled.
 o setEnableVirtualHosts(boolean)
Sets virtual hosting option
 o setKeepAliveCount(int)
Sets the keep-alive count.
 o setKeepAliveTimeout(int)
Sets the keep-alive timeout.
 o setNtService(boolean)
Sets the ntservice switch.
 o setRamCacheEntrySize(int)
Sets the RAM cache entry size.
 o setWelcome(String)
Sets the welcome page.

Variables

 o DEFAULT_WELCOME
  public final static String DEFAULT_WELCOME
 o DEFAULT_ENABLE_ACLS
  public final static boolean DEFAULT_ENABLE_ACLS
 o DEFAULT_ENABLE_LOADING
  public final static boolean DEFAULT_ENABLE_LOADING
 o DEFAULT_ENABLE_PROXY
  public final static boolean DEFAULT_ENABLE_PROXY
 o DEFAULT_RAM_CACHE_ENTRY_SIZE
  public final static int DEFAULT_RAM_CACHE_ENTRY_SIZE
 o DEFAULT_KEEP_ALIVE_COUNT
  public final static int DEFAULT_KEEP_ALIVE_COUNT
 o DEFAULT_KEEP_ALIVE_TIMEOUT
  public final static int DEFAULT_KEEP_ALIVE_TIMEOUT
 o DEFAULT_ENABLE_VIRTUAL_HOSTS
  public final static boolean DEFAULT_ENABLE_VIRTUAL_HOSTS
 o DEFAULT_NT_SERVICE
  public final static boolean DEFAULT_NT_SERVICE
 o DEFAULT_ADMIN_ROOT
  public final static String DEFAULT_ADMIN_ROOT
 o DEFAULT_DOC_ROOT
  public final static String DEFAULT_DOC_ROOT
 o welcome
  protected String welcome
The welcome page.
 o enableAcls
  protected boolean enableAcls
If true then ACLs should be enabled.
 o enableUrlLoading
  protected boolean enableUrlLoading
If true then loading via URLs should be enabled
 o enableProxy
  protected boolean enableProxy
If true then proxy servlet should be enabled.
 o ramCacheEntrySize
  protected int ramCacheEntrySize
The RAM cache entry size for file servlet.
 o keepAliveCount
  protected int keepAliveCount
The keep-alive count.
 o keepAliveTimeout
  protected int keepAliveTimeout
The keep-alive timeout.
 o enableVirtualHosts
  protected boolean enableVirtualHosts
virtual host enabled switch.
 o adminRoot
  protected String adminRoot
Admin root
 o docRoot
  protected String docRoot
Doc root.
 o ntservice
  protected boolean ntservice
Switch to enable/disable running as NT Service on NT platform.

Constructors

 o HttpServerParameters
  public HttpServerParameters()
Creates new HTTP server parameters.
 o HttpServerParameters
  public HttpServerParameters(ExProperties props)
Creates new HTTP server parameters initialized from properties.

Methods

 o getWelcome
  public String getWelcome()
Returns welcome page.
 o setWelcome
  public void setWelcome(String name)
Sets the welcome page.
 o getEnableAcls
  public boolean getEnableAcls()
Returns true if ACLs are enabled.
 o getEnableUrlLoading
  public boolean getEnableUrlLoading()
Returns true if ACLs are enabled.
 o setEnableUrlLoading
  public void setEnableUrlLoading(boolean enable)
Sets whether ACLs are enabled.
 o setEnableAcls
  public void setEnableAcls(boolean enable)
Sets whether ACLs are enabled.
 o getEnableVirtualHosts
  public boolean getEnableVirtualHosts()
Returns true if virtual hosts are enabled.
 o setEnableVirtualHosts
  public void setEnableVirtualHosts(boolean enable)
Sets virtual hosting option
 o getEnableProxy
  public boolean getEnableProxy()
Returns true if proxies are enabled.
 o setEnableProxy
  public void setEnableProxy(boolean enable)
Sets proxy switch
 o getAdminRoot
  public String getAdminRoot()
Returns the admin root for this set of virtual hosts.
 o setAdminRoot
  public void setAdminRoot(String adminRoot)
Sets admin root for this set of virtual hosts.
 o getDocRoot
  public String getDocRoot(String host)
Returns the doc root for the host. returns the default doc root if host is null. Make the default case fast.
 o setDocRoot
  public void setDocRoot(String host,
                         String docRoot)
Sets doc root for various hosts. Make the default case fast.
 o getVirtualConfig
  public synchronized String getVirtualConfig()
Returns the name value pairs for virtual hosts separated by a newline The first pair is "doc.root" and the current docRoot
 o addVirtualConfig
  public synchronized void addVirtualConfig(String virtualHost,
                                            String docRoot)
Adds the virtual host name and associated docroot to the properties
 o deleteVirtualConfig
  public synchronized void deleteVirtualConfig(String virtualHost)
Deletes the virtual host name from the properties
 o getRamCacheEntrySize
  public int getRamCacheEntrySize()
Returns the RAM cache entry size.
 o setRamCacheEntrySize
  public void setRamCacheEntrySize(int size)
Sets the RAM cache entry size.
 o getKeepAliveCount
  public int getKeepAliveCount()
Returns the keep-alive count.
 o setKeepAliveCount
  public void setKeepAliveCount(int count)
Sets the keep-alive count.
 o getKeepAliveTimeout
  public int getKeepAliveTimeout()
Returns the keep-alive timeout.
 o setKeepAliveTimeout
  public void setKeepAliveTimeout(int timeout)
Sets the keep-alive timeout.
 o getNtService
  public boolean getNtService()
Returns true if NT Service is enabled.
 o setNtService
  public void setNtService(boolean enable)
Sets the ntservice switch.
 o load
  public synchronized void load(ExProperties props)
Loads parameters from properties.
Overrides:
load in class ServerParameters
 o save
  public synchronized void save(ExProperties props)
Saves parameters to properties.
Overrides:
save in class ServerParameters

All Packages  Class Hierarchy  This Package  Previous  Next  Index