com.thetransactioncompany.jsonrpc2.server.RequestHandler
public class WsInfoRequestHandler extends Object implements com.thetransactioncompany.jsonrpc2.server.RequestHandler
init(com.nimbusds.common.jsonrpc2.WsInfo)
method must be called before servicing requests.
List of the handled requests:
Constructor | Description |
---|---|
WsInfoRequestHandler() |
Modifier and Type | Method | Description |
---|---|---|
String[] |
handledRequests() |
Lists the JSON-RPC 2.0 request method names that this handler
processes.
|
void |
init(WsInfo wsInfo) |
Initialises this WS info request handler.
|
com.thetransactioncompany.jsonrpc2.JSONRPC2Response |
process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request,
com.thetransactioncompany.jsonrpc2.server.MessageContext requestCtx) |
Processes JSON-RPC 2.0 requests for general information about this
web service.
|
public WsInfoRequestHandler()
public void init(WsInfo wsInfo)
wsInfo
- The web service name and version to report. Must not be
null
.public String[] handledRequests()
handledRequests
in interface com.thetransactioncompany.jsonrpc2.server.RequestHandler
public com.thetransactioncompany.jsonrpc2.JSONRPC2Response process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request, com.thetransactioncompany.jsonrpc2.server.MessageContext requestCtx)
process
in interface com.thetransactioncompany.jsonrpc2.server.RequestHandler
request
- The JSON-RPC 2.0 request.requestCtx
- Additional information about the request.Copyright © 2018 Connect2id. All rights reserved.