
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
RemoteExceptionpublic static void invokeAndStreamResponse(Object target, Method serviceMethod, Object[] args, ClientOracle clientOracle, OutputStream stream) throws SerializationException
SerializationExceptionpublic static void streamResponseForFailure(ClientOracle clientOracle, OutputStream out, Throwable payload) throws SerializationException
SerializationExceptionpublic static void streamResponseForSuccess(ClientOracle clientOracle, OutputStream out, Object payload) throws SerializationException
SerializationExceptionCopyright © 2018. All rights reserved.