public abstract class AbstractTransaction extends Object implements Transaction
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
async |
protected Request<?> |
request |
protected Session |
session |
| Constructor and Description |
|---|
AbstractTransaction(Session session,
Request<?> request) |
| Modifier and Type | Method and Description |
|---|---|
Session |
getSession() |
protected abstract void |
internalSendResponse(Response<? extends Object> response) |
boolean |
isAsync() |
boolean |
isNotification() |
void |
sendError(int code,
String type,
String data) |
void |
sendError(int code,
String type,
String message,
String data) |
void |
sendError(ResponseError error) |
void |
sendError(Throwable e) |
void |
sendResponse(Object result) |
void |
sendResponseObject(Response<? extends Object> response) |
void |
sendVoidResponse() |
void |
startAsync() |
protected final Session session
protected boolean async
protected final Request<?> request
public Session getSession()
getSession in interface Transactionpublic void startAsync()
startAsync in interface Transactionpublic boolean isAsync()
public void sendResponse(Object result) throws IOException
sendResponse in interface TransactionIOExceptionpublic void sendError(int code,
String type,
String data)
throws IOException
sendError in interface TransactionIOExceptionpublic void sendError(int code,
String type,
String message,
String data)
throws IOException
sendError in interface TransactionIOExceptionpublic void sendError(Throwable e) throws IOException
sendError in interface TransactionIOExceptionpublic void sendVoidResponse()
throws IOException
sendVoidResponse in interface TransactionIOExceptionpublic void sendError(ResponseError error) throws IOException
sendError in interface TransactionIOExceptionpublic void sendResponseObject(Response<? extends Object> response) throws IOException
sendResponseObject in interface TransactionIOExceptionpublic boolean isNotification()
isNotification in interface Transactionprotected abstract void internalSendResponse(Response<? extends Object> response) throws IOException
IOExceptionCopyright © 2017 Kurento. All rights reserved.