| Modifier and Type | Field and Description |
|---|---|
| private volatile ExecutorService | |
| pack-priv volatile DelayedExecutor | |
| private final HttpHandlerChain | httpHandlerChain
HttpHandler, which processes HTTP requests |
| protected volatile GrizzlyJmxManager | |
| private final Map | listeners
Mapping of |
| private static final Logger | |
| protected volatile Object | |
| private final ServerConfiguration | serverConfig
Configuration details for this server instance. |
| private FutureImpl | shutdownFuture
Future to control graceful shutdown status |
| private State | state
Flag indicating whether or not this server instance has been started. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addListener(final NetworkListener
the listener)NetworkListener to associate with this server instance.
Adds the specified |
| private void | |
| protected Set | |
| private void | |
| private void | |
| public static HttpServer | createSimpleServer()
Returns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot)null when no static pages are neededReturns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot, final int null when no static pages are neededthe network port to which this listener will bind port)Returns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot, final PortRange null when no static pages are neededport range to attempt to bind to range)Returns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot, final SocketAddress null when no static pages are neededthe endpoint address to which this listener will bind socketAddress)Returns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot, final String null when no static pages are neededthe network port to which this listener will bind host, final int the network port to which this listener will bind port)Returns: a |
| public static HttpServer | createSimpleServer(final String
the document root, can be docRoot, final String null when no static pages are neededthe network port to which this listener will bind host, final PortRange port range to attempt to bind to range)Returns: a |
| protected void | |
| protected void | |
| public HttpHandler | |
| public synchronized NetworkListener | getListener(final String
the name)NetworkListener name.Returns: the |
| public synchronized Collection | getListeners()
Returns: a |
| public Object | |
| public final ServerConfiguration | |
| public boolean | |
| pack-priv synchronized void | onAddHttpHandler(HttpHandler httpHandler, final HttpHandlerRegistration[] registrations)
Modifies handlers mapping during runtime. |
| pack-priv synchronized void | |
| public synchronized NetworkListener | Returns: NetworkListener, that has been removed, or null if the listener with the given name doesn't
existthe name of the name)NetworkListener to remove.
Removes the |
| private void | |
| public synchronized GrizzlyFuture | |
| public synchronized GrizzlyFuture | |
| public synchronized void | |
| public synchronized void | |
| public void | |
| private void | |
| private void |
| auxExecutorService | back to summary |
|---|---|
| private volatile ExecutorService auxExecutorService | |
| delayedExecutor | back to summary |
|---|---|
| pack-priv volatile DelayedExecutor delayedExecutor | |
| httpHandlerChain | back to summary |
|---|---|
| private final HttpHandlerChain httpHandlerChain HttpHandler, which processes HTTP requests | |
| jmxManager | back to summary |
|---|---|
| protected volatile GrizzlyJmxManager jmxManager | |
| listeners | back to summary |
|---|---|
| private final Map<String, NetworkListener> listeners Mapping of | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| managementObject | back to summary |
|---|---|
| protected volatile Object managementObject | |
| serverConfig | back to summary |
|---|---|
| private final ServerConfiguration serverConfig Configuration details for this server instance. | |
| shutdownFuture | back to summary |
|---|---|
| private FutureImpl<HttpServer> shutdownFuture Future to control graceful shutdown status | |
| state | back to summary |
|---|---|
| private State state Flag indicating whether or not this server instance has been started. | |
| HttpServer | back to summary |
|---|---|
| public HttpServer() | |
| addListener | back to summary |
|---|---|
| public synchronized void addListener(final NetworkListener listener)
Adds the specified If the server is already running when this method is called, the listener will be started.
| |
| configureAuxThreadPool | back to summary |
|---|---|
| private void configureAuxThreadPool() | |
| configureCompressionEncodings | back to summary |
|---|---|
| protected Set | |
| configureListener | back to summary |
|---|---|
| private void configureListener(final NetworkListener listener) | |
| configureMonitoring | back to summary |
|---|---|
private void configureMonitoring(final NetworkListener listener)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer()
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot, final int port)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot, final PortRange range)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot, final SocketAddress socketAddress)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot, final String host, final int port)
| |
| createSimpleServer | back to summary |
|---|---|
public static HttpServer createSimpleServer(final String docRoot, final String host, final PortRange range)
| |
| disableJMX | back to summary |
|---|---|
| protected void disableJMX() | |
| enableJMX | back to summary |
|---|---|
| protected void enableJMX() | |
| getHttpHandler | back to summary |
|---|---|
public HttpHandler getHttpHandler()
| |
| getListener | back to summary |
|---|---|
public synchronized NetworkListener getListener(final String name)
| |
| getListeners | back to summary |
|---|---|
public synchronized Collection
| |
| getManagementObject | back to summary |
|---|---|
| public Object getManagementObject(boolean clear) | |
| getServerConfiguration | back to summary |
|---|---|
public final ServerConfiguration getServerConfiguration()
| |
| isStarted | back to summary |
|---|---|
public boolean isStarted()
| |
| onAddHttpHandler | back to summary |
|---|---|
| pack-priv synchronized void onAddHttpHandler(HttpHandler httpHandler, final HttpHandlerRegistration[] registrations) Modifies handlers mapping during runtime. | |
| onRemoveHttpHandler | back to summary |
|---|---|
| pack-priv synchronized void onRemoveHttpHandler(HttpHandler httpHandler) Modifies handlers mapping during runtime. | |
| removeListener | back to summary |
|---|---|
| public synchronized NetworkListener removeListener(final String name)
Removes the If the server is running when this method is invoked, the listener will be stopped before being returned.
| |
| setupHttpHandler | back to summary |
|---|---|
| private void setupHttpHandler() | |
| shutdown | back to summary |
|---|---|
| public synchronized GrizzlyFuture | |
| shutdown | back to summary |
|---|---|
| public synchronized GrizzlyFuture
Gracefully shuts down the | |
| shutdownNow | back to summary |
|---|---|
| public synchronized void shutdownNow()
Immediately shuts down the | |
| start | back to summary |
|---|---|
| public synchronized void start() throws IOException
Starts the
| |
| stop | back to summary |
|---|---|
| public void stop()
Deprecated use
Immediately shuts down the
| |
| stopAuxThreadPool | back to summary |
|---|---|
| private void stopAuxThreadPool() | |
| tearDownHttpHandler | back to summary |
|---|---|
| private void tearDownHttpHandler() | |