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 toDispatchServletin 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 booleanhandle(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:
trueif the request was dispatched- Throws:
IOException- in case of I/O errors