|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.connector.ConnectorHelper<Server>
org.restlet.engine.connector.ServerHelper
org.restlet.engine.adapter.HttpServerHelper
org.restlet.engine.connector.NetServerHelper
public abstract class NetServerHelper
Abstract Internal web server connector based on com.sun.net.httpserver package. Here is the list of parameters that are supported. They should be set in the Server's context before it is started:
Parameter name | Value type | Default value | Description |
---|
Constructor Summary | |
---|---|
NetServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.restlet.engine.adapter.HttpServerHelper |
---|
getAdapter, handle, setAdapter |
Methods inherited from class org.restlet.engine.connector.ServerHelper |
---|
handle, setEphemeralPort, setEphemeralPort |
Methods inherited from class org.restlet.engine.connector.ConnectorHelper |
---|
getConnectorService, getContext, getProtocols, update |
Methods inherited from class org.restlet.engine.RestletHelper |
---|
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetServerHelper(Server server)
server
- The server to help.Method Detail |
---|
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
RestletHelper
start
in class ConnectorHelper<Server>
Exception
public void stop() throws Exception
RestletHelper
stop
in class ServerHelper
Exception
|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |