Class Dispatcher


  • public class Dispatcher
    extends Object
    Dispatcher used to route incoming remote server requests to a Handler. Similar to DispatchServlet in Spring MVC but separate to ensure that remote support can be used regardless of any web framework.
    Since:
    1.3.0
    See Also:
    HandlerMapper
    • Method Detail

      • handle

        public boolean handle​(org.springframework.http.server.ServerHttpRequest request,
                              org.springframework.http.server.ServerHttpResponse response)
                       throws IOException
        Dispatch the specified request to an appropriate Handler.
        Parameters:
        request - the request
        response - the response
        Returns:
        true if the request was dispatched
        Throws:
        IOException - in case of I/O errors