Package io.undertow.server.handlers
Class PathTemplateHandler
- java.lang.Object
-
- io.undertow.server.handlers.PathTemplateHandler
-
- All Implemented Interfaces:
HttpHandler
public class PathTemplateHandler extends Object implements HttpHandler
A handler that matches URI templates- Author:
- Stuart Douglas
- See Also:
PathTemplateMatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathTemplateHandler.PathTemplateMatchDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static AttachmentKey<PathTemplateHandler.PathTemplateMatch>PATH_TEMPLATE_MATCHDeprecated.
-
Constructor Summary
Constructors Constructor Description PathTemplateHandler()PathTemplateHandler(boolean rewriteQueryParameters)PathTemplateHandler(HttpHandler next)PathTemplateHandler(HttpHandler next, boolean rewriteQueryParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathTemplateHandleradd(String uriTemplate, HttpHandler handler)voidhandleRequest(HttpServerExchange exchange)Handle the request.PathTemplateHandlerremove(String uriTemplate)StringtoString()
-
-
-
Field Detail
-
PATH_TEMPLATE_MATCH
@Deprecated public static final AttachmentKey<PathTemplateHandler.PathTemplateMatch> PATH_TEMPLATE_MATCH
Deprecated.- See Also:
PathTemplateMatch.ATTACHMENT_KEY
-
-
Constructor Detail
-
PathTemplateHandler
public PathTemplateHandler()
-
PathTemplateHandler
public PathTemplateHandler(boolean rewriteQueryParameters)
-
PathTemplateHandler
public PathTemplateHandler(HttpHandler next)
-
PathTemplateHandler
public PathTemplateHandler(HttpHandler next, boolean rewriteQueryParameters)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
add
public PathTemplateHandler add(String uriTemplate, HttpHandler handler)
-
remove
public PathTemplateHandler remove(String uriTemplate)
-
-