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)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.net.InetSocketAddress |
getAddress()
Returns the socket address this server is listening to.
|
protected org.simpleframework.transport.connect.Connection |
getConnection()
Returns the Simple connection.
|
protected org.simpleframework.http.core.ContainerServer |
getContainerServer()
Returns the Simple container server.
|
int |
getDefaultThreads()
Returns the default number of polling threads for a handler object.
|
boolean |
isConfidential()
Indicates if this service is acting in HTTP or HTTPS mode.
|
protected void |
setAddress(java.net.InetSocketAddress address)
Sets the socket address this server is listening to.
|
protected void |
setConfidential(boolean confidential)
Indicates if this service is acting in HTTP or HTTPS mode.
|
protected void |
setConnection(org.simpleframework.transport.connect.Connection connection)
Sets the Simple connection.
|
protected void |
setContainerServer(org.simpleframework.http.core.ContainerServer container)
Sets the Simple container server.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
getAdapter, handle, setAdapterhandle, setEphemeralPort, setEphemeralPortgetConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic SimpleServerHelper(Server server)
server - The server to help.protected org.simpleframework.transport.connect.Connection getConnection()
public int getDefaultThreads()
protected org.simpleframework.http.core.ContainerServer getContainerServer()
protected java.net.InetSocketAddress getAddress()
public boolean isConfidential()
protected void setConfidential(boolean confidential)
confidential - True if this service is acting in HTTP or HTTPS mode.protected void setConnection(org.simpleframework.transport.connect.Connection connection)
connection - The Simple connection.protected void setContainerServer(org.simpleframework.http.core.ContainerServer container)
container - The Simple containerServer.protected void setAddress(java.net.InetSocketAddress address)
address - The socket address this server is listening to.public void start()
throws java.lang.Exception
RestletHelperstart in class ConnectorHelper<Server>java.lang.Exceptionpublic void stop()
throws java.lang.Exception
RestletHelperstop in class ServerHelperjava.lang.ExceptionCopyright © 2005-2012. All Rights Reserved.