Package dev.getelements.elements.jrpc
Class JsonRpcResource
java.lang.Object
dev.getelements.elements.jrpc.JsonRpcResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke(JsonRpcRequest jsonRpcRequest, jakarta.ws.rs.container.AsyncResponse asyncResponse) voidinvoke(String jsonrpc, String method, String params, String id, jakarta.ws.rs.container.AsyncResponse asyncResponse) voidsetJsonRpcInvocationService(JsonRpcInvocationService jsonRpcInvocationService) voidsetJsonRpcManifestService(JsonRpcManifestService jsonRpcManifestService) voidsetJsonRpcRedirectionStrategy(JsonRpcRedirectionStrategy jsonRpcRedirectionStrategy) voidsetLocalInvocationDispatcher(LocalInvocationDispatcher localInvocationDispatcher)
-
Constructor Details
-
JsonRpcResource
public JsonRpcResource()
-
-
Method Details
-
invoke
@GET @Path("invoke") @Consumes({"application/json","application/json-rpc","application/jsonrequest"}) @Produces({"application/json","application/json-rpc","application/jsonrequest"}) public void invoke(@QueryParam("jsonrpc") @DefaultValue("2.0") String jsonrpc, @QueryParam("method") String method, @QueryParam("params") String params, @QueryParam("id") String id, @Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse) -
invoke
@POST @Path("invoke") @Consumes({"application/json","application/json-rpc","application/jsonrequest"}) @Produces({"application/json","application/json-rpc","application/jsonrequest"}) public void invoke(JsonRpcRequest jsonRpcRequest, @Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse) -
getManifest
-
getJsonRpcManifestService
-
setJsonRpcManifestService
-
getJsonRpcInvocationService
-
setJsonRpcInvocationService
-
getJsonRpcRedirectionStrategy
-
setJsonRpcRedirectionStrategy
@Inject public void setJsonRpcRedirectionStrategy(JsonRpcRedirectionStrategy jsonRpcRedirectionStrategy) -
getLocalInvocationDispatcher
-
setLocalInvocationDispatcher
@Inject public void setLocalInvocationDispatcher(LocalInvocationDispatcher localInvocationDispatcher)
-