Package dev.getelements.elements.jrpc
Class JsonRpcResource
java.lang.Object
dev.getelements.elements.jrpc.JsonRpcResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(JsonRpcRequest jsonRpcRequest, jakarta.ws.rs.container.AsyncResponse asyncResponse) void
invoke
(String jsonrpc, String method, String params, String id, jakarta.ws.rs.container.AsyncResponse asyncResponse) void
setJsonRpcInvocationService
(JsonRpcInvocationService jsonRpcInvocationService) void
setJsonRpcManifestService
(JsonRpcManifestService jsonRpcManifestService) void
setJsonRpcRedirectionStrategy
(JsonRpcRedirectionStrategy jsonRpcRedirectionStrategy) void
setLocalInvocationDispatcher
(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)
-