HttpServer instance.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| pack-priv final Map | |
| pack-priv final Object | |
| pack-priv final HttpServer | |
| private static final AtomicInteger | |
| private boolean | |
| private final Set | |
| private long | maxPayloadRemainderToSkip
The maximum request payload remainder (in bytes) HttpServerFilter will try to swallow after HTTP request processing is over in order to keep the connection alive. |
| private final HttpServerMonitoringConfig | |
| private String | |
| pack-priv final List | |
| private static final HttpHandlerRegistration[] | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addHttpHandler(final HttpHandler httpHandler, final String...
context path mapping information. mappings)Adds the specified |
| public void | addHttpHandler(final HttpHandler httpHandler, HttpHandlerRegistration...
context path mapping information. mapping)Adds the specified |
| public void | addJmxEventListener(final JmxEventListener
the listener)JmxEventListener to add.Add a |
| public Map | Returns: theHttpHandler map.
Deprecated
please use
getHttpHandlersWithMapping()
Returns the |
| public Map | |
| public Set | |
| public long | getMaxPayloadRemainderToSkip()
Returns: the maximum request payload remainder (in bytes) HttpServerFilter will try to swallow after HTTP request processing is over in order to keep the connection alive. |
| public HttpServerMonitoringConfig | Returns: the web server monitoring config.Get the web server monitoring config. |
| public String | |
| public boolean | Returns: true if "undefined" methods support payload, or false otherwiseThe flag, which enables/disables payload support for HTTP methods, for which HTTP spec doesn't clearly state whether they support payload. |
| public boolean | |
| public synchronized boolean | Returns: true, if the operation was successful, otherwise falseRemoves the specified |
| public void | removeJmxEventListener(final JmxEventListener
the listener)JmxEventListener to remove.Removes the specified |
| public void | setAllowPayloadForUndefinedHttpMethods(boolean
true if "undefined" methods support payload, or false
otherwise allowPayloadForUndefinedHttpMethods)The flag, which enables/disables payload support for HTTP methods, for which HTTP spec doesn't clearly state whether they support payload. |
| public void | |
| public void | setMaxPayloadRemainderToSkip(long maxPayloadRemainderToSkip)
Set the maximum request payload remainder (in bytes) HttpServerFilter will try to swallow after HTTP request processing is over in order to keep the connection alive. |
| public void |
| allowPayloadForUndefinedHttpMethods | back to summary |
|---|---|
| private boolean allowPayloadForUndefinedHttpMethods | |
| handlers | back to summary |
|---|---|
| pack-priv final Map<HttpHandler, HttpHandlerRegistration[]> handlers | |
| handlersSync | back to summary |
|---|---|
| pack-priv final Object handlersSync | |
| instance | back to summary |
|---|---|
| pack-priv final HttpServer instance | |
| INSTANCE_COUNT | back to summary |
|---|---|
| private static final AtomicInteger INSTANCE_COUNT | |
| jmxEnabled | back to summary |
|---|---|
| private boolean jmxEnabled | |
| jmxEventListeners | back to summary |
|---|---|
| private final Set<JmxEventListener> jmxEventListeners | |
| maxPayloadRemainderToSkip | back to summary |
|---|---|
| private long maxPayloadRemainderToSkip The maximum request payload remainder (in bytes) HttpServerFilter will try to swallow after HTTP request processing is over in order to keep the connection alive. If the remainder is too large - HttpServerFilter will close the connection. | |
| monitoringConfig | back to summary |
|---|---|
| private final HttpServerMonitoringConfig monitoringConfig | |
| name | back to summary |
|---|---|
| private String name | |
| orderedHandlers | back to summary |
|---|---|
| pack-priv final List<HttpHandler> orderedHandlers | |
| ROOT_MAPPING | back to summary |
|---|---|
| private static final HttpHandlerRegistration[] ROOT_MAPPING | |
| unmodifiableHandlers | back to summary |
|---|---|
| private final Map<HttpHandler, HttpHandlerRegistration[]> unmodifiableHandlers | |
| ServerConfiguration | back to summary |
|---|---|
| pack-priv ServerConfiguration(HttpServer instance) | |
| addHttpHandler | back to summary |
|---|---|
| public void addHttpHandler(final HttpHandler httpHandler) Adds the specified
| |
| addHttpHandler | back to summary |
|---|---|
| public void addHttpHandler(final HttpHandler httpHandler, final String... mappings) Adds the specified
| |
| addHttpHandler | back to summary |
|---|---|
| public void addHttpHandler(final HttpHandler httpHandler, HttpHandlerRegistration... mapping) Adds the specified
| |
| addJmxEventListener | back to summary |
|---|---|
| public void addJmxEventListener(final JmxEventListener listener) Add a
| |
| getHttpHandlers | back to summary |
|---|---|
| public Map Deprecated please use Returns the
| |
| getHttpHandlersWithMapping | back to summary |
|---|---|
| public Map Returns the
| |
| getJmxEventListeners | back to summary |
|---|---|
public Set
| |
| getMaxPayloadRemainderToSkip | back to summary |
|---|---|
public long getMaxPayloadRemainderToSkip()
| |
| getMonitoringConfig | back to summary |
|---|---|
| public HttpServerMonitoringConfig getMonitoringConfig() Get the web server monitoring config.
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| isAllowPayloadForUndefinedHttpMethods | back to summary |
|---|---|
| public boolean isAllowPayloadForUndefinedHttpMethods() The flag, which enables/disables payload support for HTTP methods, for which HTTP spec doesn't clearly state whether they support payload. Known "undefined" methods are: GET, HEAD, DELETE.
| |
| isJmxEnabled | back to summary |
|---|---|
public boolean isJmxEnabled()
| |
| removeHttpHandler | back to summary |
|---|---|
| public synchronized boolean removeHttpHandler(final HttpHandler httpHandler) Removes the specified
| |
| removeJmxEventListener | back to summary |
|---|---|
| public void removeJmxEventListener(final JmxEventListener listener) Removes the specified
| |
| setAllowPayloadForUndefinedHttpMethods | back to summary |
|---|---|
| public void setAllowPayloadForUndefinedHttpMethods(boolean allowPayloadForUndefinedHttpMethods) The flag, which enables/disables payload support for HTTP methods, for which HTTP spec doesn't clearly state whether they support payload. Known "undefined" methods are: GET, HEAD, DELETE.
| |
| setJmxEnabled | back to summary |
|---|---|
| public void setJmxEnabled(boolean jmxEnabled) Enables
| |
| setMaxPayloadRemainderToSkip | back to summary |
|---|---|
| public void setMaxPayloadRemainderToSkip(long maxPayloadRemainderToSkip) Set the maximum request payload remainder (in bytes) HttpServerFilter will try to swallow after HTTP request processing is over in order to keep the connection alive. If the remainder is too large - the connection will be closed. -1 means no limits will be applied.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the logical name of this
| |