HttpHandlers every time a new HTTP request is
ready to be handled. Requests are mapped to their associated HttpHandler at runtime using the mapping
information configured when invoking the
(org.glassfish.grizzly.http.server.HttpHandler, java.lang.String[])
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class | |
| private static interface | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DispatcherHelper | dispatchHelper
DispatchHelper, which maps path or name to the Mapper entry |
| private final HttpHandlerChain. | |
| private final ConcurrentMap | handlers
The list of |
| private final ConcurrentMap | handlersByName
The name -> |
| private int | handlersCount
Number of registered HttpHandlers |
| private final HttpServer | |
| private boolean | isRootConfigured
Is the root context configured? |
| private static final String | LOCAL_HOST
The default host. |
| private static final Logger | |
| private final Mapper | mapper
Internal |
| private final ReentrantReadWriteLock | |
| private final ConcurrentMap | |
| private static final Map | |
| private volatile HttpHandlerChain. | rootHttpHandler
The root |
| private boolean | started
Flag indicating this HttpHandler has been started. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHandler(final HttpHandler
HttpHandler instancean array of mapping. mappings)Add a |
| public void | addHandler(final HttpHandler
HttpHandler instancean array of mapping. mappings)Add a |
| private void | |
| public synchronized void | destroy()
Overrides org. Invoked when the |
| pack-priv boolean | |
| public void | jmxDisabled()
Implements org. Invoked when JMX has been disabled. |
| public void | jmxEnabled()
Implements org. Invoked when JMX has been enabled. |
| private void | |
| public void | |
| public boolean | Returns: true if removedHttpHandler to removeRemove a |
| public void | service(final Request
The request, final Response RequestThe response)ResponseImplements abstract org. Map the |
| public synchronized void | start()
Overrides org. Called when the |
| dispatchHelper | back to summary |
|---|---|
| private final DispatcherHelper dispatchHelper DispatchHelper, which maps path or name to the Mapper entry | |
| fullUrlPathResolver | back to summary |
|---|---|
| private final HttpHandlerChain. | |
| handlers | back to summary |
|---|---|
| private final ConcurrentMap<HttpHandler, HttpHandlerRegistration[]> handlers The list of | |
| handlersByName | back to summary |
|---|---|
| private final ConcurrentMap<String, HttpHandler> handlersByName The name -> | |
| handlersCount | back to summary |
|---|---|
| private int handlersCount Number of registered HttpHandlers | |
| httpServer | back to summary |
|---|---|
| private final HttpServer httpServer | |
| isRootConfigured | back to summary |
|---|---|
| private boolean isRootConfigured Is the root context configured? | |
| LOCAL_HOST | back to summary |
|---|---|
| private static final String LOCAL_HOST The default host. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| mapper | back to summary |
|---|---|
| private final Mapper mapper Internal | |
| mapperUpdateLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock mapperUpdateLock | |
| monitors | back to summary |
|---|---|
| private final ConcurrentMap<HttpHandler, Object> monitors | |
| ROOT_URLS | back to summary |
|---|---|
| private static final Map<HttpHandlerRegistration, HttpHandlerChain. | |
| rootHttpHandler | back to summary |
|---|---|
| private volatile HttpHandlerChain. The root | |
| started | back to summary |
|---|---|
| private boolean started Flag indicating this HttpHandler has been started. Any subsequent HttpHandler instances added to this chain after is has been started will have their start() method invoked. | |
| HttpHandlerChain | back to summary |
|---|---|
| public HttpHandlerChain(final HttpServer httpServer) | |
| addHandler | back to summary |
|---|---|
| public void addHandler(final HttpHandler httpHandler, final String[] mappings) Add a
| |
| addHandler | back to summary |
|---|---|
| public void addHandler(final HttpHandler httpHandler, final HttpHandlerRegistration[] mappings) Add a
| |
| deregisterJmxForHandler | back to summary |
|---|---|
| private void deregisterJmxForHandler(final HttpHandler httpHandler) | |
| destroy | back to summary |
|---|---|
| public synchronized void destroy() Overrides org. Doc from org. Invoked when the
| |
| doHandle | back to summary |
|---|---|
| pack-priv boolean doHandle(final Request request, final Response response) throws Exception Overrides org. Doc from org. Pre-processes HttpHandler
| |
| jmxDisabled | back to summary |
|---|---|
| public void jmxDisabled() Implements org. Doc from org. Invoked when JMX has been disabled.
| |
| jmxEnabled | back to summary |
|---|---|
| public void jmxEnabled() Implements org. Doc from org. Invoked when JMX has been enabled.
| |
| registerJmxForHandler | back to summary |
|---|---|
| private void registerJmxForHandler(final HttpHandler httpHandler) | |
| removeAllHttpHandlers | back to summary |
|---|---|
| public void removeAllHttpHandlers() | |
| removeHttpHandler | back to summary |
|---|---|
| public boolean removeHttpHandler(final HttpHandler httpHandler) Remove a
| |
| service | back to summary |
|---|---|
| public void service(final Request request, final Response response) throws Exception Implements abstract org. Map the | |
| start | back to summary |
|---|---|
| public synchronized void start() Overrides org. Doc from org. Called when the
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | mapName(final DataChunk name, final MappingData mappingData)
Implements org.
|
| public void | mapPath(final HttpRequestPacket requestPacket, final DataChunk path, final MappingData mappingData)
Implements org.
|
| DispatchHelperImpl | back to summary |
|---|---|
| private DispatchHelperImpl() | |
| mapName | back to summary |
|---|---|
| public void mapName(final DataChunk name, final MappingData mappingData) Implements org.
| |
| mapPath | back to summary |
|---|---|
| public void mapPath(final HttpRequestPacket requestPacket, final DataChunk path, final MappingData mappingData) throws Exception Implements org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request)
Implements org.
|
| EmptyPathUpdater | back to summary |
|---|---|
| private EmptyPathUpdater() | |
| update | back to summary |
|---|---|
| public void update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | resolve(final Request request)
Implements org.
|
| httpHandler | back to summary |
|---|---|
| private final HttpHandler httpHandler | |
| FullUrlPathResolver | back to summary |
|---|---|
| public FullUrlPathResolver(HttpHandler httpHandler) | |
| resolve | back to summary |
|---|---|
| public String resolve(final Request request) Implements org.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| update | back to summary |
|---|---|
| public void update(HttpHandlerChain handlerChain, HttpHandler httpHandler, Request request) | |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler | |
| private final HttpHandlerChain. |
| Access | Constructor and Description |
|---|---|
| public |
| httpHandler | back to summary |
|---|---|
| private final HttpHandler httpHandler | |
| pathUpdater | back to summary |
|---|---|
| private final HttpHandlerChain. | |
| RootHttpHandler | back to summary |
|---|---|
| public RootHttpHandler(final HttpHandler httpHandler, final HttpHandlerChain. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request)
Implements org.
|
| SlashPathUpdater | back to summary |
|---|---|
| private SlashPathUpdater() | |
| update | back to summary |
|---|---|
| public void update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request)
Implements org.
|
| SlashStarPathUpdater | back to summary |
|---|---|
| private SlashStarPathUpdater() | |
| update | back to summary |
|---|---|
| public void update(final HttpHandlerChain handlerChain, final HttpHandler httpHandler, final Request request) Implements org.
| |