public class UrlHandlerMapper extends Object implements HandlerMapper
HandlerMapper
implementation that maps incoming URLs.Constructor and Description |
---|
UrlHandlerMapper(String url,
Handler handler)
Create a new
UrlHandlerMapper . |
Modifier and Type | Method and Description |
---|---|
Handler |
getHandler(ServerHttpRequest request)
Return the handler for the given request or
null . |
public UrlHandlerMapper(String url, Handler handler)
UrlHandlerMapper
.url
- the URL to maphandler
- the handler to usepublic Handler getHandler(ServerHttpRequest request)
HandlerMapper
null
.getHandler
in interface HandlerMapper
request
- the requestHandler
or null
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.