Package io.undertow.server.handlers
Class PathTemplateHandler
java.lang.Object
io.undertow.server.handlers.PathTemplateHandler
- All Implemented Interfaces:
HttpHandler
A handler that matches URI templates
- Author:
- Stuart Douglas
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttachmentKey<PathTemplateHandler.PathTemplateMatch>
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionPathTemplateHandler
(boolean rewriteQueryParameters) PathTemplateHandler
(HttpHandler next, boolean rewriteQueryParameters) -
Method Summary
Modifier and TypeMethodDescriptionadd
(String uriTemplate, HttpHandler handler) void
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
Field Details
-
PATH_TEMPLATE_MATCH
@Deprecated public static final AttachmentKey<PathTemplateHandler.PathTemplateMatch> PATH_TEMPLATE_MATCHDeprecated.- See Also:
-
-
Constructor Details
-
PathTemplateHandler
public PathTemplateHandler() -
PathTemplateHandler
public PathTemplateHandler(boolean rewriteQueryParameters) -
PathTemplateHandler
-
PathTemplateHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
add
-
remove
-
toString
-