|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A config interface for HTTP server.
| Method Summary | |
java.lang.String |
getContextPath()
Gets context path for the server. |
java.lang.String |
getHostName()
Gets host name for the server. |
int |
getMaxIdleTime()
Gets a maximum time in milliseconds for an idle thread to wait for a new connection. |
int |
getMaxReadTime()
Gets a maximum time in milliseconds that a read on a connection can block. |
int |
getMaxThreads()
Gets a maximal number of serving threads each one for one accepted connection. |
int |
getMinThreads()
Gets a minimal number of waiting threads for new incoming connection. |
int |
getPort()
Gets the server port or -1 if this server doesn't
run. |
void |
setContextPath(java.lang.String contextPath)
Sets context path for the server. |
void |
setHostName(java.lang.String hostName)
Sets host name for the server. |
void |
setMaxIdleTime(int value)
Sets a maximum time in milliseconds for an idle thread to wait for a new connection. |
void |
setMaxReadTime(int value)
Sets a maximum time in milliseconds that a read on a connection can block. |
void |
setMaxThreads(int value)
Sets a maximal number of serving threads each one for one accepted connection. |
void |
setMinThreads(int value)
Sets a minimal number of waiting threads for new incoming connection. |
void |
setPort(int value)
Sets the server port. |
| Methods inherited from interface org.idoox.transport.config.TransportConfig |
getClassName, getClassSpaceName, getDefaultServer, getName, getPreload, getScheme, setClassName, setClassSpaceName, setDefaultServer, setName, setPreload, setScheme |
| Method Detail |
public int getPort()
-1 if this server doesn't
run.
public void setPort(int value)
value - the portpublic int getMinThreads()
public void setMinThreads(int value)
value - a minimal number of threadspublic int getMaxThreads()
public void setMaxThreads(int value)
value - a maximal number of threadspublic int getMaxIdleTime()
public void setMaxIdleTime(int value)
value - a maximum idle timepublic int getMaxReadTime()
public void setMaxReadTime(int value)
value - a maximum read timepublic java.lang.String getContextPath()
public void setContextPath(java.lang.String contextPath)
contextPath - context pathpublic java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName - host name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||