public class PathTemplateHandler extends Object implements HttpHandler
PathTemplateMatcher
Modifier and Type | Class and Description |
---|---|
static class |
PathTemplateHandler.PathTemplateMatch
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<PathTemplateHandler.PathTemplateMatch> |
PATH_TEMPLATE_MATCH
Deprecated.
|
Constructor and Description |
---|
PathTemplateHandler() |
PathTemplateHandler(boolean rewriteQueryParameters) |
PathTemplateHandler(HttpHandler next) |
PathTemplateHandler(HttpHandler next,
boolean rewriteQueryParameters) |
Modifier and Type | Method and 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_KEY
public PathTemplateHandler()
public PathTemplateHandler(boolean rewriteQueryParameters)
public PathTemplateHandler(HttpHandler next)
public PathTemplateHandler(HttpHandler next, boolean rewriteQueryParameters)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public PathTemplateHandler add(String uriTemplate, HttpHandler handler)
public PathTemplateHandler remove(String uriTemplate)
Copyright © 2019 JBoss by Red Hat. All rights reserved.