/** * Create the JSON handler for messages between the local and remote services. */ protected MessageJsonHandler createJsonHandler() { Map<String, JsonRpcMethod> supportedMethods = getSupportedMethods(); if (configureGson != null) return new MessageJsonHandler(supportedMethods, configureGson); else return new MessageJsonHandler(supportedMethods); }
/** * Create the JSON handler for messages between the local and remote services. */ protected MessageJsonHandler createJsonHandler() { Map<String, JsonRpcMethod> supportedMethods = getSupportedMethods(); if (configureGson != null) return new MessageJsonHandler(supportedMethods, configureGson); else return new MessageJsonHandler(supportedMethods); }