| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final PathTemplateMatcher | |
| private volatile HttpHandler | |
| private volatile HttpHandler | |
| private final Map | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public HttpHandler | Returns: Handler called when no match was found and invalid method handler can't be invoked.
|
| public HttpHandler | Returns: Handler called when this instance can not match the http method but can match another http method.
|
| pack-priv Map | |
| private void | handleNoMatch(final HttpServerExchange
The object for which its handled the "no match" case. exchange)Handles the case in with a match was not found for the http method but might exist for another http method. |
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public synchronized RoutingHandler | |
| public RoutingHandler | Returns: this handlerThe method to remove method, String the path tempate to remove path)Removes the specified route from the handler |
| public RoutingHandler | |
| public RoutingHandler | Returns: This instance.Handler that will be called when no match was found and invalid method handler can't be
invoked. fallbackHandler)
|
| public RoutingHandler | Returns: This instance.Handler that will be called when this instance can not match the http method but can
match another http method. invalidMethodHandler)Sets the handler called when this instance can not match the http method but can match another http method. |
| allMethodsMatcher | back to summary |
|---|---|
| private final PathTemplateMatcher<RoutingHandler. | |
| fallbackHandler | back to summary |
|---|---|
| private volatile HttpHandler fallbackHandler | |
| invalidMethodHandler | back to summary |
|---|---|
| private volatile HttpHandler invalidMethodHandler | |
| matches | back to summary |
|---|---|
| private final Map<HttpString, PathTemplateMatcher<RoutingHandler. | |
| rewriteQueryParameters | back to summary |
|---|---|
| private final boolean rewriteQueryParameters | |
| RoutingHandler | back to summary |
|---|---|
| public RoutingHandler(boolean rewriteQueryParameters) | |
| RoutingHandler | back to summary |
|---|---|
| public RoutingHandler() | |
| add | back to summary |
|---|---|
| public synchronized RoutingHandler add(final String method, final String template, HttpHandler handler) | |
| add | back to summary |
|---|---|
| public synchronized RoutingHandler add(HttpString method, String template, HttpHandler handler) | |
| add | back to summary |
|---|---|
| public synchronized RoutingHandler add(final String method, final String template, Predicate predicate, HttpHandler handler) | |
| add | back to summary |
|---|---|
| public synchronized RoutingHandler add(HttpString method, String template, Predicate predicate, HttpHandler handler) | |
| addAll | back to summary |
|---|---|
| public synchronized RoutingHandler addAll(RoutingHandler routingHandler) | |
| delete | back to summary |
|---|---|
| public synchronized RoutingHandler delete(final String template, HttpHandler handler) | |
| delete | back to summary |
|---|---|
| public synchronized RoutingHandler delete(final String template, Predicate predicate, HttpHandler handler) | |
| get | back to summary |
|---|---|
| public synchronized RoutingHandler get(final String template, HttpHandler handler) | |
| get | back to summary |
|---|---|
| public synchronized RoutingHandler get(final String template, Predicate predicate, HttpHandler handler) | |
| getFallbackHandler | back to summary |
|---|---|
public HttpHandler getFallbackHandler()
| |
| getInvalidMethodHandler | back to summary |
|---|---|
public HttpHandler getInvalidMethodHandler()
| |
| getMatches | back to summary |
|---|---|
| pack-priv Map | |
| handleNoMatch | back to summary |
|---|---|
| private void handleNoMatch(final HttpServerExchange exchange) throws Exception Handles the case in with a match was not found for the http method but might exist for another http method. For example: POST not matched for a path but at least one match exists for same path.
| |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| post | back to summary |
|---|---|
| public synchronized RoutingHandler post(final String template, HttpHandler handler) | |
| post | back to summary |
|---|---|
| public synchronized RoutingHandler post(final String template, Predicate predicate, HttpHandler handler) | |
| put | back to summary |
|---|---|
| public synchronized RoutingHandler put(final String template, HttpHandler handler) | |
| put | back to summary |
|---|---|
| public synchronized RoutingHandler put(final String template, Predicate predicate, HttpHandler handler) | |
| remove | back to summary |
|---|---|
| public RoutingHandler remove(HttpString method, String path) Removes the specified route from the handler
| |
| remove | back to summary |
|---|---|
| public RoutingHandler remove(String path) Removes the specified route from the handler
| |
| setFallbackHandler | back to summary |
|---|---|
public RoutingHandler setFallbackHandler(HttpHandler fallbackHandler)
| |
| setInvalidMethodHandler | back to summary |
|---|---|
| public RoutingHandler setInvalidMethodHandler(HttpHandler invalidMethodHandler) Sets the handler called when this instance can not match the http method but can match another http method. For example: For an exchange the POST method is not matched by this instance but at least one http method matched for the exchange. If this handler is null the fallbackHandler will be used.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpHandler | |
| pack-priv final Predicate |
| Access | Constructor and Description |
|---|---|
| private |
| handler | back to summary |
|---|---|
| pack-priv final HttpHandler handler | |
| predicate | back to summary |
|---|---|
| pack-priv final Predicate predicate | |
| HandlerHolder | back to summary |
|---|---|
| private HandlerHolder(Predicate predicate, HttpHandler handler) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile HttpHandler | |
| pack-priv final List |
| Access | Constructor and Description |
|---|---|
| private |
| defaultHandler | back to summary |
|---|---|
| pack-priv volatile HttpHandler defaultHandler | |
| predicatedHandlers | back to summary |
|---|---|
| pack-priv final List<RoutingHandler. | |
| RoutingMatch | back to summary |
|---|---|
| private RoutingMatch() | |