Class UrlHandlerMapper
- java.lang.Object
- org.springframework.boot.devtools.remote.server.UrlHandlerMapper
- All Implemented Interfaces:
HandlerMapper
public class UrlHandlerMapper extends Object implements HandlerMapper
HandlerMapper
implementation that maps incoming URLs.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description UrlHandlerMapper(String url, Handler handler)
Create a newUrlHandlerMapper
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Handler
getHandler(org.springframework.http.server.ServerHttpRequest request)
Return the handler for the given request ornull
.
Constructor Detail
UrlHandlerMapper
public UrlHandlerMapper(String url, Handler handler)
Create a newUrlHandlerMapper
.- Parameters:
url
- the URL to maphandler
- the handler to use
Method Detail
getHandler
public Handler getHandler(org.springframework.http.server.ServerHttpRequest request)
Description copied from interface:HandlerMapper
Return the handler for the given request ornull
.- Specified by:
getHandler
in interfaceHandlerMapper
- Parameters:
request
- the request- Returns:
- a
Handler
ornull