- generateID() - Method in interface com.googlecode.jsonrpc4j.RequestIDGenerator
-
Generate the request ID for each json-rpc request.
- getAdditionalJsonContent() - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
- getAnnotation(Method, Class<T>) - Static method in class com.googlecode.jsonrpc4j.ReflectionUtil
-
Returns the first Annotation
of the given type
defined on the given Method
.
- getAnnotations(Method, Class<T>) - Static method in class com.googlecode.jsonrpc4j.ReflectionUtil
-
Returns Annotation
s of the given type defined
on the given Method
.
- getCode() - Method in exception com.googlecode.jsonrpc4j.JsonRpcClientException
-
- getConnectionProxy() - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- getConnectionTimeoutMillis() - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- getData() - Method in exception com.googlecode.jsonrpc4j.JsonRpcClientException
-
- getExceptionTypeName() - Method in class com.googlecode.jsonrpc4j.ErrorData
-
- getHandler(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Get the handler (object) that should be invoked to execute the specified
RPC method.
- getHandler(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
Get the handler (object) that should be invoked to execute the specified
RPC method based on the specified service name.
- getHandlerInterfaces(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Returns the handler's class or interfaces.
- getHandlerInterfaces(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
Returns the handler's class or interfaces.
- getHeaders() - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- getHeaders() - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- getHttpStatusCode(int) - Method in enum com.googlecode.jsonrpc4j.DefaultHttpStatusCodeProvider
-
- getHttpStatusCode(int) - Method in interface com.googlecode.jsonrpc4j.HttpStatusCodeProvider
-
Returns an HTTP status code for the given response and result code.
- getJsonRpcCode(int) - Method in enum com.googlecode.jsonrpc4j.DefaultHttpStatusCodeProvider
-
- getJsonRpcCode(int) - Method in interface com.googlecode.jsonrpc4j.HttpStatusCodeProvider
-
Returns result code for the given HTTP status code
- getLastException() - Method in class com.googlecode.jsonrpc4j.StreamServer.Server
-
- getMaxClientErrors() - Method in class com.googlecode.jsonrpc4j.StreamServer
-
- getMessage() - Method in class com.googlecode.jsonrpc4j.ErrorData
-
- getMethodName(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Get the method name from the methodNode.
- getMethodName(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
Get the method name from the methodNode, stripping off the service name.
- getNumberOfConnections() - Method in class com.googlecode.jsonrpc4j.StreamServer
-
- getNumberOfErrors() - Method in class com.googlecode.jsonrpc4j.StreamServer.Server
-
- getObjectMapper() - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Returns the ObjectMapper
that the client
is using for JSON marshalling.
- getReadContext(InputStream, ObjectMapper) - Static method in class com.googlecode.jsonrpc4j.ReadContext
-
- getReadTimeoutMillis() - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- getRequestInterceptor() - Method in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
- getSeparator() - Method in class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
- getServers() - Method in class com.googlecode.jsonrpc4j.StreamServer
-
Returns the current servers.
- getServiceName(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Get the service name from the methodNode.
- getServiceName(String) - Method in class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
Get the service name from the methodNode.
- getServiceUrl() - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- getServiceUrl() - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- ID - Static variable in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
- IJsonRpcClient - Interface in com.googlecode.jsonrpc4j
-
- interceptRequest(JsonNode) - Method in interface com.googlecode.jsonrpc4j.RequestInterceptor
-
This method will be invoked prior to any JSON-RPC service being invoked.
- INTERNAL_ERROR - Static variable in class com.googlecode.jsonrpc4j.ErrorResolver.JsonError
-
- INVALID_REQUEST - Static variable in class com.googlecode.jsonrpc4j.ErrorResolver.JsonError
-
- InvocationListener - Interface in com.googlecode.jsonrpc4j
-
Implementations of this interface are able to be informed when JSON-RPC services are invoked.
- invoke(String, Object) - Method in interface com.googlecode.jsonrpc4j.IJsonRpcClient
-
Invokes the given method with the given argument.
- invoke(String, Object, Type) - Method in interface com.googlecode.jsonrpc4j.IJsonRpcClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Type, Map<String, String>) - Method in interface com.googlecode.jsonrpc4j.IJsonRpcClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>) - Method in interface com.googlecode.jsonrpc4j.IJsonRpcClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>, Map<String, String>) - Method in interface com.googlecode.jsonrpc4j.IJsonRpcClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, OutputStream) - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Invokes the given method on the remote service passing
the given argument.
- invoke(String, Object) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
Invokes the given method with the given arguments and returns
immediately.
- invoke(String, Object, Class<T>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
Invokes the given method with the given arguments and returns
immediately.
- invoke(String, Object, JsonRpcCallback<Object>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
Invokes the given method with the given arguments and invokes the
JsonRpcCallback
with the result.
- invoke(String, Object, Class<T>, JsonRpcCallback<T>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
Invokes the given method with the given arguments and invokes the
JsonRpcCallback
with the result cast to the given
returnType
, or null if void.
- invoke(String, Object) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
Invokes the given method with the given argument.
- invoke(String, Object, Type) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Type, Map<String, String>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>, Map<String, String>) - Method in class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object) - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
Invokes the given method with the given argument.
- invoke(String, Object, Type) - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Type, Map<String, String>) - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>) - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invoke(String, Object, Class<T>, Map<String, String>) - Method in class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
Invokes the given method with the given arguments and returns
an object of the given type, or null if void.
- invokeAndReadResponse(String, Object, Class<T>, OutputStream, InputStream) - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Invokes the given method on the remote service
passing the given arguments, a generated id and reads
a response.
- invokeAndReadResponse(String, Object, Type, OutputStream, InputStream) - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Invokes the given method on the remote service
passing the given arguments, a generated id and reads
a response.
- invokeAndReadResponse(String, Object, Class<T>, OutputStream, InputStream, String) - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Invokes the given method on the remote service
passing the given arguments and reads a response.
- invokeNotification(String, Object, OutputStream) - Method in class com.googlecode.jsonrpc4j.JsonRpcClient
-
Invokes the given method on the remote service passing
the given argument without reading or expecting a return
response.
- isStarted() - Method in class com.googlecode.jsonrpc4j.StreamServer
-
- JsonError(int, String, Object) - Constructor for class com.googlecode.jsonrpc4j.ErrorResolver.JsonError
-
Creates the error.
- JSONRPC - Static variable in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
- JSONRPC_CONTENT_TYPE - Static variable in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
- JsonRpcBasicServer - Class in com.googlecode.jsonrpc4j
-
A JSON-RPC request server reads JSON-RPC requests from an input stream and writes responses to an output stream.
- JsonRpcBasicServer(ObjectMapper, Object) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Creates the server with the given ObjectMapper
delegating
all calls to the given handler
.
- JsonRpcBasicServer(ObjectMapper, Object, Class<?>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Creates the server with the given ObjectMapper
delegating
all calls to the given handler
Object
but only
methods available on the remoteInterface
.
- JsonRpcBasicServer(Object, Class<?>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Creates the server with a default ObjectMapper
delegating
all calls to the given handler
Object
but only
methods available on the remoteInterface
.
- JsonRpcBasicServer(Object) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-
Creates the server with a default ObjectMapper
delegating
all calls to the given handler
.
- JsonRpcCallback<T> - Interface in com.googlecode.jsonrpc4j
-
This interface is used by the JsonRpcHttpAsyncClient for receiving
RPC responses.
- JsonRpcClient - Class in com.googlecode.jsonrpc4j
-
A JSON-RPC client.
- JsonRpcClient() - Constructor for class com.googlecode.jsonrpc4j.JsonRpcClient
-
Creates a client that uses the default ObjectMapper
to map to and from JSON and Java objects.
- JsonRpcClient(ObjectMapper) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcClient
-
Creates a client that uses the given ObjectMapper
to
map to and from JSON and Java objects.
- JsonRpcClient.RequestListener - Interface in com.googlecode.jsonrpc4j
-
Provides access to the jackson ObjectNode
s
that represent the JSON-RPC requests and responses.
- JsonRpcClientException - Exception in com.googlecode.jsonrpc4j
-
Unchecked Exception thrown by a JSON-RPC client when
an error occurs.
- JsonRpcClientException(int, String, JsonNode) - Constructor for exception com.googlecode.jsonrpc4j.JsonRpcClientException
-
Creates the exception.
- JsonRpcError - Annotation Type in com.googlecode.jsonrpc4j
-
Annotation for mapping exceptions in service methods to custom JsonRpc errors.
- JsonRpcErrors - Annotation Type in com.googlecode.jsonrpc4j
-
Annotation for holding an array of @JsonRpcError annotations
for a method.
- JsonRpcHttpAsyncClient - Class in com.googlecode.jsonrpc4j
-
Implements an asynchronous JSON-RPC 2.0 HTTP client.
- JsonRpcHttpAsyncClient(URL) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
- JsonRpcHttpAsyncClient(ObjectMapper, URL, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
- JsonRpcHttpAsyncClient(URL, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpAsyncClient
-
- JsonRpcHttpClient - Class in com.googlecode.jsonrpc4j
-
A JSON-RPC client that uses the HTTP protocol.
- JsonRpcHttpClient(URL, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- JsonRpcHttpClient(ObjectMapper, URL, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- JsonRpcHttpClient(ObjectMapper, URL, Map<String, String>, boolean, boolean) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- JsonRpcHttpClient(URL) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcHttpClient
-
- JsonRpcMethod - Annotation Type in com.googlecode.jsonrpc4j
-
Annotation for annotating service methods as
JsonRpc method by name.
- JsonRpcMultiServer - Class in com.googlecode.jsonrpc4j
-
A multiple service dispatcher that supports JSON-RPC "method" names
that use dot-notation to select a server endpoint.
- JsonRpcMultiServer() - Constructor for class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
- JsonRpcMultiServer(ObjectMapper) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcMultiServer
-
- JsonRpcParam - Annotation Type in com.googlecode.jsonrpc4j
-
Annotation for annotating service parameters as
JsonRpc params by name.
- JsonRpcResponseErrorHandler - Enum in com.googlecode.jsonrpc4j.spring.rest
-
- JsonRpcRestClient - Class in com.googlecode.jsonrpc4j.spring.rest
-
- JsonRpcRestClient(URL) - Constructor for class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- JsonRpcRestClient(URL, ObjectMapper, RestTemplate, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- JsonRpcRestClient(URL, Map<String, String>) - Constructor for class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- JsonRpcRestClient(URL, RestTemplate) - Constructor for class com.googlecode.jsonrpc4j.spring.rest.JsonRpcRestClient
-
- JsonRpcServer - Class in com.googlecode.jsonrpc4j
-
A JSON-RPC request server reads JSON-RPC requests from an input stream and writes responses to an output stream.
- JsonRpcServer(ObjectMapper, Object, Class<?>, boolean) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcServer
-
Creates the server with the given ObjectMapper
delegating
all calls to the given handler
Object
but only
methods available on the remoteInterface
.
- JsonRpcServer(ObjectMapper, Object, Class<?>) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcServer
-
Creates the server with the given ObjectMapper
delegating
all calls to the given handler
Object
but only
methods available on the remoteInterface
.
- JsonRpcServer(ObjectMapper, Object) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcServer
-
Creates the server with the given ObjectMapper
delegating
all calls to the given handler
.
- JsonRpcServer(Object) - Constructor for class com.googlecode.jsonrpc4j.JsonRpcServer
-
Creates the server with a default ObjectMapper
delegating
all calls to the given handler
.
- JsonRpcService - Annotation Type in com.googlecode.jsonrpc4j
-
Annotation to define the path of a JSON-RPC service.
- valueOf(String) - Static method in enum com.googlecode.jsonrpc4j.AnnotationsErrorResolver
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.googlecode.jsonrpc4j.DefaultErrorResolver
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.googlecode.jsonrpc4j.DefaultExceptionResolver
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.googlecode.jsonrpc4j.DefaultHttpStatusCodeProvider
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.googlecode.jsonrpc4j.spring.rest.JsonRpcResponseErrorHandler
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.googlecode.jsonrpc4j.AnnotationsErrorResolver
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.googlecode.jsonrpc4j.DefaultErrorResolver
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.googlecode.jsonrpc4j.DefaultExceptionResolver
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.googlecode.jsonrpc4j.DefaultHttpStatusCodeProvider
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.googlecode.jsonrpc4j.spring.rest.JsonRpcResponseErrorHandler
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VERSION - Static variable in class com.googlecode.jsonrpc4j.JsonRpcBasicServer
-