Class UrlHandlerMapper
- java.lang.Object
- org.springframework.boot.devtools.remote.server.UrlHandlerMapper
- All Implemented Interfaces:
HandlerMapper
public class UrlHandlerMapper extends Object implements HandlerMapper
HandlerMapperimplementation 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 HandlergetHandler(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:HandlerMapperReturn the handler for the given request ornull.- Specified by:
getHandlerin interfaceHandlerMapper- Parameters:
request- the request- Returns:
- a
Handlerornull