Class 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.- Since:
- 1.3.0
- See Also:
HandlerMapper
Constructor Summary
Constructors Constructor Description Dispatcher(AccessManager accessManager, Collection<HandlerMapper> mappers)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
Dispatch the specified request to an appropriateHandler
.
Constructor Detail
Dispatcher
public Dispatcher(AccessManager accessManager, Collection<HandlerMapper> mappers)
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 appropriateHandler
.- Parameters:
request
- the requestresponse
- the response- Returns:
true
if the request was dispatched- Throws:
IOException
- in case of I/O errors