T - request class typeR - response class typepublic static interface Messaging.RequestHandler<T,R> extends Stream
Messaging.RequestHandler.Responder.respond(R) must be called to
dispatch a response to the request.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Messaging.RequestHandler.RequestContext
Context of the request received.
|
static interface |
Messaging.RequestHandler.Responder<R>
Responder interface to dispatch responses to requests.
|
Stream.Default| Modifier and Type | Method and Description |
|---|---|
void |
onRequest(T request,
Messaging.RequestHandler.RequestContext context,
Messaging.RequestHandler.Responder<R> responder)
Called to indicate a request has been received.
|
void onRequest(T request, Messaging.RequestHandler.RequestContext context, Messaging.RequestHandler.Responder<R> responder)
request - request that was receivedcontext - context object that provides the session id (session
that sent the request), path and session properties.responder - responder to dispatch a response back to the
requesterCopyright © 2023 DiffusionData Limited. All rights reserved.