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)
HandlerMapper
null
.getHandler
in interface HandlerMapper
request
- the requestHandler
or null
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.