Class UrlHandlerMapper
java.lang.Object
org.springframework.boot.devtools.remote.server.UrlHandlerMapper
- All Implemented Interfaces:
HandlerMapper
HandlerMapper implementation that maps incoming URLs.- Since:
- 1.3.0
- Author:
- Rob Winch, Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionUrlHandlerMapper(String url, Handler handler) Create a newUrlHandlerMapper. -
Method Summary
Modifier and TypeMethodDescriptiongetHandler(ServerHttpRequest request) Return the handler for the given request ornull.
-
Constructor Details
-
UrlHandlerMapper
Create a newUrlHandlerMapper.- Parameters:
url- the URL to maphandler- the handler to use
-
-
Method Details
-
getHandler
Description copied from interface:HandlerMapperReturn the handler for the given request ornull.- Specified by:
getHandlerin interfaceHandlerMapper- Parameters:
request- the request- Returns:
- a
Handlerornull
-