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 JsonRpcRequestSender
IOException
public <R> R sendRequest(String method, Object params, Class<R> resultClass) throws IOException
sendRequest
in interface JsonRpcRequestSender
IOException
public <P,R> R sendRequest(Request<P> request, Class<R> resultClass) throws JsonRpcErrorException, IOException
JsonRpcErrorException
IOException
public com.google.gson.JsonElement sendRequest(String method) throws IOException
sendRequest
in interface JsonRpcRequestSender
IOException
public com.google.gson.JsonElement sendRequest(String method, Object params) throws IOException
sendRequest
in interface JsonRpcRequestSender
IOException
public void sendRequest(String method, com.google.gson.JsonObject params, Continuation<com.google.gson.JsonElement> continuation)
sendRequest
in interface JsonRpcRequestSender
public void sendNotification(String method) throws IOException
sendNotification
in interface JsonRpcRequestSender
IOException
public void sendNotification(String method, Object params) throws IOException
sendNotification
in interface JsonRpcRequestSender
IOException
public void sendNotification(String method, Object params, Continuation<com.google.gson.JsonElement> continuation) throws IOException
sendNotification
in interface JsonRpcRequestSender
IOException
public Response<com.google.gson.JsonElement> sendRequest(Request<com.google.gson.JsonObject> request) throws IOException
sendRequest
in interface JsonRpcRequestSender
IOException
public void sendRequest(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation)
sendRequest
in interface JsonRpcRequestSender
public Response<com.google.gson.JsonElement> sendRequestHonorId(Request<com.google.gson.JsonObject> request) throws IOException
sendRequestHonorId
in interface JsonRpcRequestSender
IOException
public void sendRequestHonorId(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation) throws IOException
sendRequestHonorId
in interface JsonRpcRequestSender
IOException
protected abstract <P,R> Response<R> internalSendRequest(Request<P> request, Class<R> resultClass) throws IOException
IOException
protected 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.