public abstract class NetServerHelper extends HttpServerHelper
| Parameter name | Value type | Default value | Description |
|---|
| Constructor and Description |
|---|
NetServerHelper(Server server)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected InetSocketAddress |
getAddress()
Returns the socket address this server is listening to.
|
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.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
getAdapter, handle, setAdapterhandle, setEphemeralPort, setEphemeralPortgetConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic NetServerHelper(Server server)
server - The server to help.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 setAddress(InetSocketAddress address)
address - The socket address this server is listening to.public void start()
throws Exception
RestletHelperstart in class ConnectorHelper<Server>Exceptionpublic void stop()
throws Exception
RestletHelperstop in class ServerHelperExceptionCopyright © 2005-2014 Restlet.