@Deprecated public abstract class SimpleServerHelper extends HttpServerHelper
Parameter name | Value type | Default value | Description |
---|---|---|---|
defaultThreads | int | 20 | Default number of polling threads for a handler object. |
maxWaitTimeMs | int | 200 | Maximum waiting time between polls of the input. |
Constructor and Description |
---|
SimpleServerHelper(Server server)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.net.InetSocketAddress |
getAddress()
Deprecated.
Returns the socket address this server is listening to.
|
protected Connection |
getConnection()
Deprecated.
Returns the Simple connection.
|
protected ContainerServer |
getContainerServer()
Deprecated.
Returns the Simple container server.
|
int |
getDefaultThreads()
Deprecated.
Returns the default number of polling threads for a handler object.
|
boolean |
isConfidential()
Deprecated.
Indicates if this service is acting in HTTP or HTTPS mode.
|
protected void |
setAddress(java.net.InetSocketAddress address)
Deprecated.
Sets the socket address this server is listening to.
|
protected void |
setConfidential(boolean confidential)
Deprecated.
Indicates if this service is acting in HTTP or HTTPS mode.
|
protected void |
setConnection(Connection connection)
Deprecated.
Sets the Simple connection.
|
protected void |
setContainerServer(ContainerServer container)
Deprecated.
Sets the Simple container server.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
getAdapter, handle, setAdapter
handle, setEphemeralPort, setEphemeralPort
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public SimpleServerHelper(Server server)
server
- The server to help.protected java.net.InetSocketAddress getAddress()
protected Connection getConnection()
protected ContainerServer getContainerServer()
public int getDefaultThreads()
public boolean isConfidential()
protected void setAddress(java.net.InetSocketAddress address)
address
- The socket address this server is listening to.protected void setConfidential(boolean confidential)
confidential
- True if this service is acting in HTTP or HTTPS mode.protected void setConnection(Connection connection)
connection
- The Simple connection.protected void setContainerServer(ContainerServer container)
container
- The Simple containerServer.public void start() throws java.lang.Exception
start
in class ConnectorHelper<Server>
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in class ServerHelper
java.lang.Exception
Copyright © 2005-2020 Restlet.