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.
-
flushRamCache()
- Flushes the file servlet RAM cache.
-
getAccessLog()
- Returns the access log file name.
-
getAccessLogLevel()
- Returns the access log level.
-
getErrorLog()
- Returns the error log file name.
-
getErrorLogLevel()
- Returns the error log level.
-
getEventLog()
- Returns the event log file name.
-
getEventLogLevel()
- Returns the event log level.
-
getLogTimeFormat()
- Returns the access log date format.
-
init()
- Loads and initializes server properties.
-
saveAliases()
- Saves alias rules to config file.
-
saveMime()
- Saves MIME type information to config file.
-
saveProperties()
- Saves server properties to config file.
-
saveRules()
- Saves servlet rules to config file.
-
setAccessLog(String)
- Sets the access log file.
-
setAccessLogLevel(int)
- Sets the access log level.
-
setErrorLog(String)
- Sets the error log file.
-
setErrorLogLevel(int)
- Sets the error log level.
-
setEventLog(String)
- Sets the event log file.
-
setEventLogLevel(int)
- Sets the event log level.
-
setLogTimeFormat(String)
- Sets the access log date format to be GMT or local
init
public void init() throws Exception
- Loads and initializes server properties.
- Throws: Exception
- indicates initialization failed
saveProperties
public void saveProperties() throws IOException
- Saves server properties to config file.
saveAliases
public void saveAliases() throws IOException
- Saves alias rules to config file.
saveRules
public void saveRules() throws IOException
- Saves servlet rules to config file.
saveMime
public void saveMime() throws IOException
- Saves MIME type information to config file.
getAccessLog
public String getAccessLog()
- Returns the access log file name.
setAccessLog
public void setAccessLog(String name) throws IOException
- Sets the access log file.
getAccessLogLevel
public int getAccessLogLevel()
- Returns the access log level.
setAccessLogLevel
public void setAccessLogLevel(int level)
- Sets the access log level.
getLogTimeFormat
public String getLogTimeFormat()
- Returns the access log date format.
setLogTimeFormat
public void setLogTimeFormat(String format)
- Sets the access log date format to be GMT or local
getErrorLog
public String getErrorLog()
- Returns the error log file name.
setErrorLog
public void setErrorLog(String name) throws IOException
- Sets the error log file.
getErrorLogLevel
public int getErrorLogLevel()
- Returns the error log level.
setErrorLogLevel
public void setErrorLogLevel(int level)
- Sets the error log level.
getEventLog
public String getEventLog()
- Returns the event log file name.
setEventLog
public void setEventLog(String name) throws IOException
- Sets the event log file.
getEventLogLevel
public int getEventLogLevel()
- Returns the event log level.
setEventLogLevel
public void setEventLogLevel(int level)
- Sets the event log level.
flushRamCache
public void flushRamCache()
- Flushes the file servlet RAM cache.
All Packages Class Hierarchy This Package Previous Next Index