类 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.
    从以下版本开始:
    1.3.0
    另请参阅:
    HandlerMapper
    • 方法详细资料

      • 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.
        参数:
        request - the request
        response - the response
        返回:
        true if the request was dispatched
        抛出:
        IOException - in case of I/O errors