public abstract class JsonRpcRequestSenderHelper extends Object implements JsonRpcRequestSender
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
id |
protected String |
sessionId |
| Constructor and Description |
|---|
JsonRpcRequestSenderHelper() |
JsonRpcRequestSenderHelper(String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSessionId() |
protected abstract void |
internalSendRequest(Request<? extends Object> request,
Class<com.google.gson.JsonElement> class1,
Continuation<Response<com.google.gson.JsonElement>> continuation) |
protected abstract <P,R> Response<R> |
internalSendRequest(Request<P> request,
Class<R> resultClass) |
void |
sendNotification(String method) |
void |
sendNotification(String method,
Object params) |
void |
sendNotification(String method,
Object params,
Continuation<com.google.gson.JsonElement> continuation) |
Response<com.google.gson.JsonElement> |
sendRequest(Request<com.google.gson.JsonObject> request) |
void |
sendRequest(Request<com.google.gson.JsonObject> request,
Continuation<Response<com.google.gson.JsonElement>> continuation) |
<P,R> R |
sendRequest(Request<P> request,
Class<R> resultClass) |
com.google.gson.JsonElement |
sendRequest(String method) |
<R> R |
sendRequest(String method,
Class<R> resultClass) |
void |
sendRequest(String method,
com.google.gson.JsonObject params,
Continuation<com.google.gson.JsonElement> continuation) |
com.google.gson.JsonElement |
sendRequest(String method,
Object params) |
<R> R |
sendRequest(String method,
Object params,
Class<R> resultClass) |
Response<com.google.gson.JsonElement> |
sendRequestHonorId(Request<com.google.gson.JsonObject> request) |
void |
sendRequestHonorId(Request<com.google.gson.JsonObject> request,
Continuation<Response<com.google.gson.JsonElement>> continuation) |
void |
setSessionId(String sessionId) |
protected AtomicInteger id
protected String sessionId
public JsonRpcRequestSenderHelper()
public JsonRpcRequestSenderHelper(String sessionId)
public String getSessionId()
public void setSessionId(String sessionId)
public <R> R sendRequest(String method, Class<R> resultClass) throws IOException
sendRequest in interface JsonRpcRequestSenderIOExceptionpublic <R> R sendRequest(String method, Object params, Class<R> resultClass) throws IOException
sendRequest in interface JsonRpcRequestSenderIOExceptionpublic <P,R> R sendRequest(Request<P> request, Class<R> resultClass) throws JsonRpcErrorException, IOException
JsonRpcErrorExceptionIOExceptionpublic com.google.gson.JsonElement sendRequest(String method) throws IOException
sendRequest in interface JsonRpcRequestSenderIOExceptionpublic com.google.gson.JsonElement sendRequest(String method, Object params) throws IOException
sendRequest in interface JsonRpcRequestSenderIOExceptionpublic void sendRequest(String method, com.google.gson.JsonObject params, Continuation<com.google.gson.JsonElement> continuation)
sendRequest in interface JsonRpcRequestSenderpublic void sendNotification(String method) throws IOException
sendNotification in interface JsonRpcRequestSenderIOExceptionpublic void sendNotification(String method, Object params) throws IOException
sendNotification in interface JsonRpcRequestSenderIOExceptionpublic void sendNotification(String method, Object params, Continuation<com.google.gson.JsonElement> continuation) throws IOException
sendNotification in interface JsonRpcRequestSenderIOExceptionpublic Response<com.google.gson.JsonElement> sendRequest(Request<com.google.gson.JsonObject> request) throws IOException
sendRequest in interface JsonRpcRequestSenderIOExceptionpublic void sendRequest(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation)
sendRequest in interface JsonRpcRequestSenderpublic Response<com.google.gson.JsonElement> sendRequestHonorId(Request<com.google.gson.JsonObject> request) throws IOException
sendRequestHonorId in interface JsonRpcRequestSenderIOExceptionpublic void sendRequestHonorId(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation) throws IOException
sendRequestHonorId in interface JsonRpcRequestSenderIOExceptionprotected abstract <P,R> Response<R> internalSendRequest(Request<P> request, Class<R> resultClass) throws IOException
IOExceptionprotected abstract void internalSendRequest(Request<? extends Object> request, Class<com.google.gson.JsonElement> class1, Continuation<Response<com.google.gson.JsonElement>> continuation)
Copyright © 2017 Kurento. All rights reserved.