public class RPC extends Object
Utility class for integrating with the RPC system.
Modifier and Type | Method and Description |
---|---|
static RPCRequest |
decodeRequest(String encodedRequest,
Class<?> type,
ClientOracle clientOracle) |
static void |
invokeAndStreamResponse(Object target,
Method serviceMethod,
Object[] args,
ClientOracle clientOracle,
OutputStream stream) |
static void |
streamResponseForFailure(ClientOracle clientOracle,
OutputStream out,
Throwable payload) |
static void |
streamResponseForSuccess(ClientOracle clientOracle,
OutputStream out,
Object payload) |
public static RPCRequest decodeRequest(String encodedRequest, Class<?> type, ClientOracle clientOracle) throws RemoteException
RemoteException
public static void invokeAndStreamResponse(Object target, Method serviceMethod, Object[] args, ClientOracle clientOracle, OutputStream stream) throws SerializationException
SerializationException
public static void streamResponseForFailure(ClientOracle clientOracle, OutputStream out, Throwable payload) throws SerializationException
SerializationException
public static void streamResponseForSuccess(ClientOracle clientOracle, OutputStream out, Object payload) throws SerializationException
SerializationException
Copyright © 2018. All rights reserved.