| java.lang.Object seda.sandStorm.lib.http.httpServer
httpServer | public class httpServer implements EventHandlerIF,httpConst(Code) | | An httpServer is a SandStorm stage which accepts incoming HTTP
connections. The server has a client sink associated with it, onto
which httpConnection and httpRequest events are pushed. When a
connection is closed, a SinkClosedEvent is pushed, with the
sink pointer set to the httpConnection that closed.
author: Matt Welsh (mdw@cs.berkeley.edu) See Also: httpConnection See Also: httpRequest |
Constructor Summary | |
public | httpServer(ManagerIF mgr, SinkIF clientSink) Create an HTTP server listening for incoming connections on
the default port of 8080. | public | httpServer(ManagerIF mgr, SinkIF clientSink, int listenPort) Create an HTTP server listening for incoming connections on
the given listenPort. |
listenPort | protected int listenPort(Code) | | |
httpServer | public httpServer(ManagerIF mgr, SinkIF clientSink) throws Exception(Code) | | Create an HTTP server listening for incoming connections on
the default port of 8080.
|
httpServer | public httpServer(ManagerIF mgr, SinkIF clientSink, int listenPort) throws Exception(Code) | | Create an HTTP server listening for incoming connections on
the given listenPort.
|
destroy | public void destroy()(Code) | | The Sandstorm stage destroy method.
|
getServerSocket | public ATcpServerSocket getServerSocket()(Code) | | Return the server socket being used by this httpServer.
|
registerSink | public void registerSink(SinkIF sink)(Code) | | Register a sink to receive incoming packets on this
connection.
|
resumeAccept | public void resumeAccept()(Code) | | Resume acceptance of new connections on this server.
This request will not be effective immediately.
|
suspendAccept | public void suspendAccept()(Code) | | Suspend acceptance of new connections on this server.
This request will not be effective immediately.
|
|
|