public class ClientSession extends AbstractSession
Constructor and Description |
---|
ClientSession(String sessionId,
Object registerInfo) |
ClientSession(String sessionId,
Object registerInfo,
JsonRpcRequestSender jsonRpcRequestSender) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Object> |
getAttributes() |
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) |
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 |
setReconnectionTimeout(long millis) |
void |
setRequestSender(JsonRpcRequestSender requestSender) |
equals, getRegisterInfo, getSessionId, hashCode, isNew, setNew, setRegisterInfo, setSessionId
public ClientSession(String sessionId, Object registerInfo, JsonRpcRequestSender jsonRpcRequestSender)
public void setRequestSender(JsonRpcRequestSender requestSender)
public void close() throws IOException
IOException
public <R> R sendRequest(String method, Class<R> resultClass) throws IOException
IOException
public <R> R sendRequest(String method, Object params, Class<R> resultClass) throws IOException
IOException
public com.google.gson.JsonElement sendRequest(String method) throws IOException
IOException
public com.google.gson.JsonElement sendRequest(String method, Object params) throws IOException
IOException
public void sendNotification(String method, Object params) throws IOException
IOException
public void sendNotification(String method) throws IOException
IOException
public void sendRequest(String method, com.google.gson.JsonObject params, Continuation<com.google.gson.JsonElement> continuation)
public void sendNotification(String method, Object params, Continuation<com.google.gson.JsonElement> continuation) throws IOException
IOException
public Response<com.google.gson.JsonElement> sendRequest(Request<com.google.gson.JsonObject> request) throws IOException
IOException
public void sendRequest(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation) throws IOException
IOException
public void sendRequestHonorId(Request<com.google.gson.JsonObject> request, Continuation<Response<com.google.gson.JsonElement>> continuation) throws IOException
IOException
public Response<com.google.gson.JsonElement> sendRequestHonorId(Request<com.google.gson.JsonObject> request) throws IOException
IOException
public void setReconnectionTimeout(long millis)
Copyright © 2017 Kurento. All rights reserved.