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
Server
start
in interface Server
IOException
- if there was a problem binding to the host and port specifiedpublic void stop()
Server
public ServerAddress getServerAddress()
getServerAddress
in interface Server
public boolean isStopping()
isStopping
in interface Server
public boolean isStopped()
public RequestHandlerManager addRequestHandler(ListenerRequestMatcher listenerRequestMatcher, RequestHandler requestHandler)
addRequestHandler
in interface Server
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.