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 classDeprecated. -
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) voidhandleRequest(HttpServerExchange exchange) Handle the request.
-
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:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
add
-
remove
-