Skip navigation links
A C E F G H J M N O P R S T 

A

addMethodDelegate(RPCMethodDelegate) - Method in class rpcfy.JsonRPCMessageHandler
Adds a delegate for a given method in a interface.
asException(String, String, Class<T>) - Static method in class rpcfy.JsonRPCMessageHandler
Internal use to convert exception

C

clear() - Method in class rpcfy.JsonRPCMessageHandler
Clears all the stubs registered with this.
clearStub(RPCStub) - Method in class rpcfy.JsonRPCMessageHandler
Clears any previously registered RPCStub
clearStub(Object) - Method in class rpcfy.JsonRPCMessageHandler
Clears any stub created for the given instance

E

equals(Object) - Method in class rpcfy.RPCMethodDelegate
 

F

fromJson(String) - Method in class rpcfy.json.GsonJsonify
 
fromJSON(String, Class<T>) - Method in class rpcfy.json.GsonJsonify
 
fromJSON(String, String, Class<T>) - Method in class rpcfy.json.GsonJsonify
 
fromJSON(String, String, Type) - Method in class rpcfy.json.GsonJsonify
 
fromJson(String) - Method in interface rpcfy.JSONify
Converts given JSON string to JSONify.JElement
fromJSON(String, Class<T>) - Method in interface rpcfy.JSONify
Convert given json message to object of given type
fromJSON(String, String, Class<T>) - Method in interface rpcfy.JSONify
Convert given parameter from json message to object of given type
fromJSON(String, String, Type) - Method in interface rpcfy.JSONify
Convert given parameter from json message to object of given type

G

getExtras() - Method in class rpcfy.JsonRPCMessageHandler
Return any extras set
getJSONElement(String, String) - Method in class rpcfy.json.GsonJsonify
 
getJSONElement(String, String) - Method in interface rpcfy.JSONify
Returns the json element representing the given parameter from given json
getJsonValue(String) - Method in class rpcfy.json.GsonObject
 
getJsonValue(String) - Method in interface rpcfy.JSONify.JElement
Returns the value of parameter in json in this element if any
getKeys() - Method in class rpcfy.json.GsonObject
 
getKeys() - Method in interface rpcfy.JSONify.JElement
Returns the list of parameters in this element
getMethodDelegate(RPCMethodDelegate) - Method in class rpcfy.JsonRPCMessageHandler
Returns any method delegate set for the given method
getService() - Method in interface rpcfy.RPCStub
Returns the service that this stub wraps \
getStub(Object) - Method in class rpcfy.JsonRPCMessageHandler
Returns any stub assosiated with given object
getStubId() - Method in interface rpcfy.RPCStub
Returns the id of this stub if any
getStubInterfaceName() - Method in interface rpcfy.RPCStub
Returns the interface name that this stub implements
GsonJsonify - Class in rpcfy.json
Default implementation of JSONify using Gson
GsonJsonify() - Constructor for class rpcfy.json.GsonJsonify
 
GsonObject - Class in rpcfy.json
Default implementation of JSONify.JObject using Gson
GsonObject() - Constructor for class rpcfy.json.GsonObject
Creates an empty instance
GsonObject(String) - Constructor for class rpcfy.json.GsonObject
Creates an instance from given json

H

hashCode() - Method in class rpcfy.RPCMethodDelegate
 

J

JSONify - Interface in rpcfy
Converts an object to and from JSON.
JSONify.JElement - Interface in rpcfy
Represents a JSON element
JSONify.JObject - Interface in rpcfy
Represents a JSON object
JsonRPCMessageHandler - Class in rpcfy
Takes care of sending the JSONRPC messages using the provided MessageSender, and handles the incoming JSON RPC messages when delivered to JsonRPCMessageHandler.onMessage(String).
JsonRPCMessageHandler(MessageSender<String>) - Constructor for class rpcfy.JsonRPCMessageHandler
Creates an instance of JsonRPCMessageHandler.

M

MessageReceiver<T> - Interface in rpcfy
Processes a given message of given type.
MessageSender<T> - Interface in rpcfy
Sends the given message to the remote.

N

newJson() - Method in class rpcfy.json.GsonJsonify
 
newJson() - Method in interface rpcfy.JSONify
Returns a new JSONify.JObject

O

onMessage(String) - Method in class rpcfy.JsonRPCMessageHandler
 
onMessage(T) - Method in interface rpcfy.MessageReceiver
Called to processes given message
onRPCCall(int, String) - Method in interface rpcfy.RPCStub
Called to deliver the message from the proxy.

P

put(String, String) - Method in class rpcfy.json.GsonObject
 
put(String, int) - Method in class rpcfy.json.GsonObject
 
put(String, JSONify.JElement) - Method in class rpcfy.json.GsonObject
 
put(String, String) - Method in interface rpcfy.JSONify.JObject
Adds a name value parameter
put(String, int) - Method in interface rpcfy.JSONify.JObject
Adds a name value parameter
put(String, JSONify.JElement) - Method in interface rpcfy.JSONify.JObject
Adds a name value parameter
putJson(String, String) - Method in class rpcfy.json.GsonObject
 
putJson(String, String) - Method in interface rpcfy.JSONify.JObject
Adds the given json string as value of given parameter

R

registerStub(RPCStub) - Method in class rpcfy.JsonRPCMessageHandler
Register a RPCStub with this handler, so that any message intended for the stub can be delivered.
rpcfy - package rpcfy
 
RPCfy - Annotation Type in rpcfy.annotations
Marks an interface to be RPCfy'ed
rpcfy.annotations - package rpcfy.annotations
RPCfy upgrades your normal java interface to be capable of doing RPC (Remote Procedure Call).
rpcfy.json - package rpcfy.json
 
RPCfyNotSupported - Annotation Type in rpcfy.annotations
Marks a method within an interface marked as @RPCfy as not supporting RPC
RPCMethodDelegate<T> - Class in rpcfy
Represents a delegate to be called for a method in an interface is marked as RPCfy.
RPCMethodDelegate(Class<T>, int, T) - Constructor for class rpcfy.RPCMethodDelegate
Initialize this instance with the interface class and method id
RPCNotSupportedException - Exception in rpcfy
Thrown when a method is called in the RPCProxy that is marked as not supporting RPC
RPCNotSupportedException() - Constructor for exception rpcfy.RPCNotSupportedException
 
RPCNotSupportedException(String) - Constructor for exception rpcfy.RPCNotSupportedException
 
RPCProxy - Interface in rpcfy
Represents a proxy side of an interface that is RPCfy'ed.
RPCStub - Interface in rpcfy
Represents a remote stub.

S

sendMessage(String) - Method in class rpcfy.JsonRPCMessageHandler
Used internally by generated Proxy/Stub to send the message using the MessageSender associated with this
sendMessage(T) - Method in interface rpcfy.MessageSender
Called to send given message to the other side of RPC.
sendMessageAndWaitForResponse(String, String, int, int) - Method in class rpcfy.JsonRPCMessageHandler
Used internally by generated Proxy/Stub to send the message using the MessageSender associated with this
setExtra(Map<String, String>) - Method in class rpcfy.JsonRPCMessageHandler
Put any extra json key/value to be send with the request message.
setLogEnabled(boolean) - Method in class rpcfy.JsonRPCMessageHandler
Enable/disable debug loging
setRequestTimeout(long) - Method in class rpcfy.JsonRPCMessageHandler
Sets the request timeout for blocking requests.

T

toJson(Object) - Method in class rpcfy.json.GsonJsonify
 
toJson() - Method in class rpcfy.json.GsonObject
 
toJson() - Method in interface rpcfy.JSONify.JElement
Returns the JSON representation
toJson(Object) - Method in interface rpcfy.JSONify
Converts given Object to JSONify.JElement
toString() - Method in class rpcfy.json.GsonObject
 
A C E F G H J M N O P R S T 
Skip navigation links