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.
-
adminRoot
- Admin root
-
DEFAULT_ADMIN_ROOT
-
-
DEFAULT_DOC_ROOT
-
-
DEFAULT_ENABLE_ACLS
-
-
DEFAULT_ENABLE_LOADING
-
-
DEFAULT_ENABLE_PROXY
-
-
DEFAULT_ENABLE_VIRTUAL_HOSTS
-
-
DEFAULT_KEEP_ALIVE_COUNT
-
-
DEFAULT_KEEP_ALIVE_TIMEOUT
-
-
DEFAULT_NT_SERVICE
-
-
DEFAULT_RAM_CACHE_ENTRY_SIZE
-
-
DEFAULT_WELCOME
-
-
docRoot
- Doc root.
-
enableAcls
- If true then ACLs should be enabled.
-
enableProxy
- If true then proxy servlet should be enabled.
-
enableUrlLoading
- If true then loading via URLs should be enabled
-
enableVirtualHosts
- virtual host enabled switch.
-
keepAliveCount
- The keep-alive count.
-
keepAliveTimeout
- The keep-alive timeout.
-
ntservice
- Switch to enable/disable running as NT Service on NT platform.
-
ramCacheEntrySize
- The RAM cache entry size for file servlet.
-
welcome
- The welcome page.
-
HttpServerParameters()
- Creates new HTTP server parameters.
-
HttpServerParameters(ExProperties)
- Creates new HTTP server parameters initialized from properties.
-
addVirtualConfig(String, String)
- Adds the virtual host name and associated docroot to the properties
-
deleteVirtualConfig(String)
- Deletes the virtual host name from the properties
-
getAdminRoot()
- Returns the admin root for this set of virtual hosts.
-
getDocRoot(String)
- Returns the doc root for the host.
-
getEnableAcls()
- Returns true if ACLs are enabled.
-
getEnableProxy()
- Returns true if proxies are enabled.
-
getEnableUrlLoading()
- Returns true if ACLs are enabled.
-
getEnableVirtualHosts()
- Returns true if virtual hosts are enabled.
-
getKeepAliveCount()
- Returns the keep-alive count.
-
getKeepAliveTimeout()
- Returns the keep-alive timeout.
-
getNtService()
- Returns true if NT Service is enabled.
-
getRamCacheEntrySize()
- Returns the RAM cache entry size.
-
getVirtualConfig()
- Returns the name value pairs for virtual hosts separated by a newline
The first pair is "doc.root" and the current docRoot
-
getWelcome()
- Returns welcome page.
-
load(ExProperties)
- Loads parameters from properties.
-
save(ExProperties)
- Saves parameters to properties.
-
setAdminRoot(String)
- Sets admin root for this set of virtual hosts.
-
setDocRoot(String, String)
- Sets doc root for various hosts.
-
setEnableAcls(boolean)
- Sets whether ACLs are enabled.
-
setEnableProxy(boolean)
- Sets proxy switch
-
setEnableUrlLoading(boolean)
- Sets whether ACLs are enabled.
-
setEnableVirtualHosts(boolean)
- Sets virtual hosting option
-
setKeepAliveCount(int)
- Sets the keep-alive count.
-
setKeepAliveTimeout(int)
- Sets the keep-alive timeout.
-
setNtService(boolean)
- Sets the ntservice switch.
-
setRamCacheEntrySize(int)
- Sets the RAM cache entry size.
-
setWelcome(String)
- Sets the welcome page.
DEFAULT_WELCOME
public final static String DEFAULT_WELCOME
DEFAULT_ENABLE_ACLS
public final static boolean DEFAULT_ENABLE_ACLS
DEFAULT_ENABLE_LOADING
public final static boolean DEFAULT_ENABLE_LOADING
DEFAULT_ENABLE_PROXY
public final static boolean DEFAULT_ENABLE_PROXY
DEFAULT_RAM_CACHE_ENTRY_SIZE
public final static int DEFAULT_RAM_CACHE_ENTRY_SIZE
DEFAULT_KEEP_ALIVE_COUNT
public final static int DEFAULT_KEEP_ALIVE_COUNT
DEFAULT_KEEP_ALIVE_TIMEOUT
public final static int DEFAULT_KEEP_ALIVE_TIMEOUT
DEFAULT_ENABLE_VIRTUAL_HOSTS
public final static boolean DEFAULT_ENABLE_VIRTUAL_HOSTS
DEFAULT_NT_SERVICE
public final static boolean DEFAULT_NT_SERVICE
DEFAULT_ADMIN_ROOT
public final static String DEFAULT_ADMIN_ROOT
DEFAULT_DOC_ROOT
public final static String DEFAULT_DOC_ROOT
welcome
protected String welcome
- The welcome page.
enableAcls
protected boolean enableAcls
- If true then ACLs should be enabled.
enableUrlLoading
protected boolean enableUrlLoading
- If true then loading via URLs should be enabled
enableProxy
protected boolean enableProxy
- If true then proxy servlet should be enabled.
ramCacheEntrySize
protected int ramCacheEntrySize
- The RAM cache entry size for file servlet.
keepAliveCount
protected int keepAliveCount
- The keep-alive count.
keepAliveTimeout
protected int keepAliveTimeout
- The keep-alive timeout.
enableVirtualHosts
protected boolean enableVirtualHosts
- virtual host enabled switch.
adminRoot
protected String adminRoot
- Admin root
docRoot
protected String docRoot
- Doc root.
ntservice
protected boolean ntservice
- Switch to enable/disable running as NT Service on NT platform.
HttpServerParameters
public HttpServerParameters()
- Creates new HTTP server parameters.
HttpServerParameters
public HttpServerParameters(ExProperties props)
- Creates new HTTP server parameters initialized from properties.
getWelcome
public String getWelcome()
- Returns welcome page.
setWelcome
public void setWelcome(String name)
- Sets the welcome page.
getEnableAcls
public boolean getEnableAcls()
- Returns true if ACLs are enabled.
getEnableUrlLoading
public boolean getEnableUrlLoading()
- Returns true if ACLs are enabled.
setEnableUrlLoading
public void setEnableUrlLoading(boolean enable)
- Sets whether ACLs are enabled.
setEnableAcls
public void setEnableAcls(boolean enable)
- Sets whether ACLs are enabled.
getEnableVirtualHosts
public boolean getEnableVirtualHosts()
- Returns true if virtual hosts are enabled.
setEnableVirtualHosts
public void setEnableVirtualHosts(boolean enable)
- Sets virtual hosting option
getEnableProxy
public boolean getEnableProxy()
- Returns true if proxies are enabled.
setEnableProxy
public void setEnableProxy(boolean enable)
- Sets proxy switch
getAdminRoot
public String getAdminRoot()
- Returns the admin root for this set of virtual hosts.
setAdminRoot
public void setAdminRoot(String adminRoot)
- Sets admin root for this set of virtual hosts.
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.
setDocRoot
public void setDocRoot(String host,
String docRoot)
- Sets doc root for various hosts. Make the default case
fast.
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
addVirtualConfig
public synchronized void addVirtualConfig(String virtualHost,
String docRoot)
- Adds the virtual host name and associated docroot to the properties
deleteVirtualConfig
public synchronized void deleteVirtualConfig(String virtualHost)
- Deletes the virtual host name from the properties
getRamCacheEntrySize
public int getRamCacheEntrySize()
- Returns the RAM cache entry size.
setRamCacheEntrySize
public void setRamCacheEntrySize(int size)
- Sets the RAM cache entry size.
getKeepAliveCount
public int getKeepAliveCount()
- Returns the keep-alive count.
setKeepAliveCount
public void setKeepAliveCount(int count)
- Sets the keep-alive count.
getKeepAliveTimeout
public int getKeepAliveTimeout()
- Returns the keep-alive timeout.
setKeepAliveTimeout
public void setKeepAliveTimeout(int timeout)
- Sets the keep-alive timeout.
getNtService
public boolean getNtService()
- Returns true if NT Service is enabled.
setNtService
public void setNtService(boolean enable)
- Sets the ntservice switch.
load
public synchronized void load(ExProperties props)
- Loads parameters from properties.
- Overrides:
- load in class ServerParameters
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