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
ConstructorDescriptionUrlHandlerMapper
(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:HandlerMapper
Return the handler for the given request ornull
.- Specified by:
getHandler
in interfaceHandlerMapper
- Parameters:
request
- the request- Returns:
- a
Handler
ornull
-