private static final class ServerConnectionManager.Dispatcher extends Object implements RequestDispatcher
Modifier and Type | Field and Description |
---|---|
private ServerConnection |
c
The connection passed to handleConnection.
|
private RequestDispatcher |
dispatcher
The request dispatcher passed to handleConnection.
|
Constructor and Description |
---|
Dispatcher(RequestDispatcher dispatcher,
ServerConnection c) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(InboundRequest req)
Calls processRequestData on the connection, passing the streams
from the specified inbound request, to obtain the request handle,
wraps the mux inbound request, connection and handle in an inbound
request, checks for accept permission, and calls dispatch on the
underlying dispatcher.
|
private final RequestDispatcher dispatcher
private final ServerConnection c
Dispatcher(RequestDispatcher dispatcher, ServerConnection c)
public void dispatch(InboundRequest req)
dispatch
in interface RequestDispatcher
req
- the InboundRequest
to use to read
the request data and write the responseCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.