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 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(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, setAdapter
handle, setEphemeralPort, setEphemeralPort
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public 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 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(InetSocketAddress address)
address
- The socket address this server is listening to.public void start() throws Exception
RestletHelper
start
in class ConnectorHelper<Server>
Exception
public void stop() throws Exception
RestletHelper
stop
in class ServerHelper
Exception
Copyright © 2005–2016. All rights reserved.