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 Details

    • UrlHandlerMapper

      public UrlHandlerMapper(String url, Handler handler)
      Create a new UrlHandlerMapper.
      Parameters:
      url - the URL to map
      handler - the handler to use
  • Method Details

    • getHandler

      public @Nullable Handler getHandler(org.springframework.http.server.ServerHttpRequest request)
      Description copied from interface: HandlerMapper
      Return the handler for the given request or null.
      Specified by:
      getHandler in interface HandlerMapper
      Parameters:
      request - the request
      Returns:
      a Handler or null