|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.Helper
com.noelios.restlet.ConnectorHelper
com.noelios.restlet.ServerHelper
com.noelios.restlet.http.HttpServerHelper
com.noelios.restlet.http.StreamServerHelper
public class StreamServerHelper
HTTP server helper based on BIO sockets.
Constructor Summary | |
---|---|
StreamServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
ServerSocket |
createSocket()
Creates a server socket to listen on. |
SocketAddress |
createSocketAddress()
Creates a socket address to listen on. |
void |
start()
Start hook. |
void |
stop()
Stop callback. |
Methods inherited from class com.noelios.restlet.http.HttpServerHelper |
---|
getConverter, handle, setConverter |
Methods inherited from class com.noelios.restlet.ServerHelper |
---|
getContext, getLogger, getParameters, getServer, handle, setServer |
Methods inherited from class com.noelios.restlet.ConnectorHelper |
---|
createContext, getProtocols |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamServerHelper(Server server)
server
- The server to help.Method Detail |
---|
public ServerSocket createSocket() throws IOException
IOException
public SocketAddress createSocketAddress() throws IOException
IOException
public void start() throws Exception
ConnectorHelper
start
in class ConnectorHelper
Exception
public void stop() throws Exception
ConnectorHelper
stop
in class ConnectorHelper
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |