Class JsonRpcResource

java.lang.Object
dev.getelements.elements.jrpc.JsonRpcResource

@Path("jrpc") public class JsonRpcResource extends Object
  • 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

      @GET @Path("manifest") @Produces("application/json") public JsonRpcManifest getManifest()
    • getJsonRpcManifestService

      public JsonRpcManifestService getJsonRpcManifestService()
    • setJsonRpcManifestService

      @Inject public void setJsonRpcManifestService(JsonRpcManifestService jsonRpcManifestService)
    • getJsonRpcInvocationService

      public JsonRpcInvocationService getJsonRpcInvocationService()
    • setJsonRpcInvocationService

      @Inject public void setJsonRpcInvocationService(JsonRpcInvocationService jsonRpcInvocationService)
    • getJsonRpcRedirectionStrategy

      public JsonRpcRedirectionStrategy getJsonRpcRedirectionStrategy()
    • setJsonRpcRedirectionStrategy

      @Inject public void setJsonRpcRedirectionStrategy(JsonRpcRedirectionStrategy jsonRpcRedirectionStrategy)
    • getLocalInvocationDispatcher

      public LocalInvocationDispatcher getLocalInvocationDispatcher()
    • setLocalInvocationDispatcher

      @Inject public void setLocalInvocationDispatcher(LocalInvocationDispatcher localInvocationDispatcher)