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

Class sun.server.http.HttpServerAdmin

java.lang.Object
   |
   +----sun.server.http.HttpServerAdmin

public class HttpServerAdmin
extends Object
This class provides support for HTTP server administration. Among other things, it is used for initializing and dynamically changing server configuration information.

Method Index

 o flushRamCache()
Flushes the file servlet RAM cache.
 o getAccessLog()
Returns the access log file name.
 o getAccessLogLevel()
Returns the access log level.
 o getErrorLog()
Returns the error log file name.
 o getErrorLogLevel()
Returns the error log level.
 o getEventLog()
Returns the event log file name.
 o getEventLogLevel()
Returns the event log level.
 o getLogTimeFormat()
Returns the access log date format.
 o init()
Loads and initializes server properties.
 o saveAliases()
Saves alias rules to config file.
 o saveMime()
Saves MIME type information to config file.
 o saveProperties()
Saves server properties to config file.
 o saveRules()
Saves servlet rules to config file.
 o setAccessLog(String)
Sets the access log file.
 o setAccessLogLevel(int)
Sets the access log level.
 o setErrorLog(String)
Sets the error log file.
 o setErrorLogLevel(int)
Sets the error log level.
 o setEventLog(String)
Sets the event log file.
 o setEventLogLevel(int)
Sets the event log level.
 o setLogTimeFormat(String)
Sets the access log date format to be GMT or local

Methods

 o init
  public void init() throws Exception
Loads and initializes server properties.
Throws: Exception
indicates initialization failed
 o saveProperties
  public void saveProperties() throws IOException
Saves server properties to config file.
 o saveAliases
  public void saveAliases() throws IOException
Saves alias rules to config file.
 o saveRules
  public void saveRules() throws IOException
Saves servlet rules to config file.
 o saveMime
  public void saveMime() throws IOException
Saves MIME type information to config file.
 o getAccessLog
  public String getAccessLog()
Returns the access log file name.
 o setAccessLog
  public void setAccessLog(String name) throws IOException
Sets the access log file.
 o getAccessLogLevel
  public int getAccessLogLevel()
Returns the access log level.
 o setAccessLogLevel
  public void setAccessLogLevel(int level)
Sets the access log level.
 o getLogTimeFormat
  public String getLogTimeFormat()
Returns the access log date format.
 o setLogTimeFormat
  public void setLogTimeFormat(String format)
Sets the access log date format to be GMT or local
 o getErrorLog
  public String getErrorLog()
Returns the error log file name.
 o setErrorLog
  public void setErrorLog(String name) throws IOException
Sets the error log file.
 o getErrorLogLevel
  public int getErrorLogLevel()
Returns the error log level.
 o setErrorLogLevel
  public void setErrorLogLevel(int level)
Sets the error log level.
 o getEventLog
  public String getEventLog()
Returns the event log file name.
 o setEventLog
  public void setEventLog(String name) throws IOException
Sets the event log file.
 o getEventLogLevel
  public int getEventLogLevel()
Returns the event log level.
 o setEventLogLevel
  public void setEventLogLevel(int level)
Sets the event log level.
 o flushRamCache
  public void flushRamCache()
Flushes the file servlet RAM cache.

All Packages  Class Hierarchy  This Package  Previous  Next  Index