public static interface HttpServerTransport.Dispatcher
Modifier and Type | Method and Description |
---|---|
void |
dispatchBadRequest(RestRequest request,
RestChannel channel,
ThreadContext threadContext,
java.lang.Throwable cause)
Dispatches a bad request.
|
void |
dispatchRequest(RestRequest request,
RestChannel channel,
ThreadContext threadContext)
Dispatches the
RestRequest to the relevant request handler or responds to the given rest channel directly if
the request can't be handled by any request handler. |
void dispatchRequest(RestRequest request, RestChannel channel, ThreadContext threadContext)
RestRequest
to the relevant request handler or responds to the given rest channel directly if
the request can't be handled by any request handler.request
- the request to dispatchchannel
- the response channel of this requestthreadContext
- the thread contextvoid dispatchBadRequest(RestRequest request, RestChannel channel, ThreadContext threadContext, java.lang.Throwable cause)
request
- the request to dispatchchannel
- the response channel of this requestthreadContext
- the thread contextcause
- the cause of the bad request