public class Dispatcher extends 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,
Collection<HandlerMapper> mappers) |
Modifier and Type | Method and Description |
---|---|
boolean |
handle(ServerHttpRequest request,
ServerHttpResponse response)
Dispatch the specified request to an appropriate
Handler . |
public Dispatcher(AccessManager accessManager, Collection<HandlerMapper> mappers)
public boolean handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException
Handler
.request
- the requestresponse
- the responsetrue
if the request was dispatchedIOException
- in case of I/O errorsCopyright © 2021 Pivotal Software, Inc.. All rights reserved.