org.idoox.transport.config
Interface HttpServerConfig

All Superinterfaces:
TransportConfig
All Known Subinterfaces:
HttpsServerConfig

public interface HttpServerConfig
extends TransportConfig

A config interface for HTTP server.

Component:
Core

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

getPort

public int getPort()
Gets the server port or -1 if this server doesn't run.

Returns:
the port

setPort

public void setPort(int value)
Sets the server port.

Parameters:
value - the port

getMinThreads

public int getMinThreads()
Gets a minimal number of waiting threads for new incoming connection.

Returns:
a minimal number of threads

setMinThreads

public void setMinThreads(int value)
Sets a minimal number of waiting threads for new incoming connection.

Parameters:
value - a minimal number of threads

getMaxThreads

public int getMaxThreads()
Gets a maximal number of serving threads each one for one accepted connection.

Returns:
a maximal number of threads

setMaxThreads

public void setMaxThreads(int value)
Sets a maximal number of serving threads each one for one accepted connection.

Parameters:
value - a maximal number of threads

getMaxIdleTime

public int getMaxIdleTime()
Gets a maximum time in milliseconds for an idle thread to wait for a new connection.

Returns:
a maximum idle time

setMaxIdleTime

public void setMaxIdleTime(int value)
Sets a maximum time in milliseconds for an idle thread to wait for a new connection.

Parameters:
value - a maximum idle time

getMaxReadTime

public int getMaxReadTime()
Gets a maximum time in milliseconds that a read on a connection can block.

Returns:
a maximum read time

setMaxReadTime

public void setMaxReadTime(int value)
Sets a maximum time in milliseconds that a read on a connection can block.

Parameters:
value - a maximum read time

getContextPath

public java.lang.String getContextPath()
Gets context path for the server.

Returns:
context path

setContextPath

public void setContextPath(java.lang.String contextPath)
Sets context path for the server.

Parameters:
contextPath - context path

getHostName

public java.lang.String getHostName()
Gets host name for the server.

Returns:
host name

setHostName

public void setHostName(java.lang.String hostName)
Sets host name for the server.

Parameters:
hostName - host name