Skip to content

Commit

Permalink
#1434 return failure for the new RPCRequest if they use unsupported b…
Browse files Browse the repository at this point in the history
…ase class for it
  • Loading branch information
naleeha authored and keikeicheung committed Sep 5, 2024
1 parent 79a8934 commit 83aa2a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vuu/src/main/scala/org/finos/vuu/net/rpc/RpcHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ trait RpcHandler extends StrictLogging {

val methodsAndParams: Map[String, Array[(String, Array[Type], Method)]] = this.getClass.getMethods.map(method => (method.getName, method.getGenericParameterTypes, method)).groupBy(_._1)

def processRpcRequest(rpcName: String, params: RpcParams): RpcFunctionResult = ???
/***
* This is new RPC request message and any RpcHandler that wishes to use this message should extend DefaultRpcHandler
*/
def processRpcRequest(rpcName: String, params: RpcParams): RpcFunctionResult = new RpcFunctionFailure("Unsupported request type")

def processViewPortRpcCall(methodName: String, rcpParams: RpcParams):ViewPortAction = {

Expand Down

0 comments on commit 83aa2a0

Please sign in to comment.