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(org.springframework.http.server.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(org.springframework.http.server.ServerHttpRequest request)
HandlerMappernull.getHandler in interface HandlerMapperrequest - the requestHandler or nullCopyright © 2019 Pivotal Software, Inc.. All rights reserved.