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 a- Handler. Similar to- DispatchServletin 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 appropriate- Handler.
 
- 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 appropriate- Handler.- Parameters:
- request- the request
- response- the response
- Returns:
- trueif the request was dispatched
- Throws:
- IOException- in case of I/O errors