HttpHandlerpublic class PathTemplateHandler extends Object implements HttpHandler
PathTemplateMatcher| Modifier and Type | Class | Description |
|---|---|---|
static class |
PathTemplateHandler.PathTemplateMatch |
Deprecated.
|
| Modifier and Type | Field | Description |
|---|---|---|
static AttachmentKey<PathTemplateHandler.PathTemplateMatch> |
PATH_TEMPLATE_MATCH |
Deprecated.
|
| Constructor | Description |
|---|---|
PathTemplateHandler() |
|
PathTemplateHandler(boolean rewriteQueryParameters) |
|
PathTemplateHandler(HttpHandler next) |
|
PathTemplateHandler(HttpHandler next,
boolean rewriteQueryParameters) |
| Modifier and Type | Method | Description |
|---|---|---|
PathTemplateHandler |
add(String uriTemplate,
HttpHandler handler) |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
PathTemplateHandler |
remove(String uriTemplate) |
@Deprecated public static final AttachmentKey<PathTemplateHandler.PathTemplateMatch> PATH_TEMPLATE_MATCH
PathTemplateMatch.ATTACHMENT_KEYpublic PathTemplateHandler()
public PathTemplateHandler(boolean rewriteQueryParameters)
public PathTemplateHandler(HttpHandler next)
public PathTemplateHandler(HttpHandler next, boolean rewriteQueryParameters)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic PathTemplateHandler add(String uriTemplate, HttpHandler handler)
public PathTemplateHandler remove(String uriTemplate)
Copyright © 2018. All rights reserved.