Class JsonRpcMethod


  • public class JsonRpcMethod
    extends java.lang.Object
    A description of a JSON-RPC method.
    • Method Detail

      • getMethodName

        public java.lang.String getMethodName()
      • getParameterTypes

        public java.lang.reflect.Type[] getParameterTypes()
      • getReturnType

        public java.lang.reflect.Type getReturnType()
      • getReturnTypeAdapterFactory

        public com.google.gson.TypeAdapterFactory getReturnTypeAdapterFactory()
      • isNotification

        public boolean isNotification()
      • notification

        public static JsonRpcMethod notification​(java.lang.String name,
                                                 java.lang.reflect.Type... parameterTypes)
      • request

        public static JsonRpcMethod request​(java.lang.String name,
                                            java.lang.reflect.Type returnType,
                                            java.lang.reflect.Type... parameterTypes)
      • request

        public static JsonRpcMethod request​(java.lang.String name,
                                            java.lang.reflect.Type returnType,
                                            com.google.gson.TypeAdapterFactory returnTypeAdapterFactory,
                                            java.lang.reflect.Type... parameterTypes)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object