| Constructor and Description |
|---|
GrizzlyServer(ServerAddress serverAddress,
org.glassfish.grizzly.nio.transport.TCPNIOTransport transport,
HttpListenerRegistry listenerRegistry) |
| Modifier and Type | Method and Description |
|---|---|
RequestHandlerManager |
addRequestHandler(ListenerRequestMatcher listenerRequestMatcher,
RequestHandler requestHandler) |
ServerAddress |
getServerAddress() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
start()
Binds the ServerSocket to the network interface and starts listening for requests
|
void |
stop()
Unbinds the ServerSocket to the network interface and stops listening for requests.
|
public GrizzlyServer(ServerAddress serverAddress, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport, HttpListenerRegistry listenerRegistry)
public void start()
throws IOException
Serverstart in interface ServerIOException - if there was a problem binding to the host and port specifiedpublic void stop()
Serverpublic ServerAddress getServerAddress()
getServerAddress in interface Serverpublic boolean isStopping()
isStopping in interface Serverpublic boolean isStopped()
public RequestHandlerManager addRequestHandler(ListenerRequestMatcher listenerRequestMatcher, RequestHandler requestHandler)
addRequestHandler in interface ServerCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.