类 Dispatcher
- java.lang.Object
- org.springframework.boot.devtools.remote.server.Dispatcher
public class Dispatcher extends Object
Dispatcher used to route incoming remote server requests to aHandler
. Similar toDispatchServlet
in Spring MVC but separate to ensure that remote support can be used regardless of any web framework.- 从以下版本开始:
- 1.3.0
- 另请参阅:
HandlerMapper
构造器概要
构造器 构造器 说明 Dispatcher(AccessManager accessManager, Collection<HandlerMapper> mappers)
构造器详细资料
Dispatcher
public Dispatcher(AccessManager accessManager, Collection<HandlerMapper> mappers)
方法详细资料
handle
public boolean handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response) throws IOException
Dispatch the specified request to an appropriateHandler
.- 参数:
request
- the requestresponse
- the response- 返回:
true
if the request was dispatched- 抛出:
IOException
- in case of I/O errors