public class Dispatcher
extends java.lang.Object
Handler. Similar
to DispatchServlet in Spring MVC but separate to ensure that remote support can
be used regardless of any web framework.HandlerMapper| Constructor and Description |
|---|
Dispatcher(AccessManager accessManager,
java.util.Collection<HandlerMapper> mappers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response)
Dispatch the specified request to an appropriate
Handler. |
public Dispatcher(AccessManager accessManager, java.util.Collection<HandlerMapper> mappers)
public boolean handle(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response)
throws java.io.IOException
Handler.request - the requestresponse - the responsetrue if the request was dispatchedjava.io.IOException - in case of I/O errors