Package org.yamcs.http
Class TopicContext
- java.lang.Object
-
- org.yamcs.http.Context
-
- org.yamcs.http.TopicContext
-
public class TopicContext extends Context
Context for a specific RPC call over a (shared) WebSocket connection.
-
-
Field Summary
-
Fields inherited from class org.yamcs.http.Context
api, fieldMask, log, nettyContext, statusCode, txSize, user
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ContextListener listener)booleancancel(Throwable cause)voidclose()org.yamcs.protobuf.State.CallInfodumpState()ThrowablegetCancellationCause()com.google.protobuf.Descriptors.MethodDescriptorgetMethod()TopicgetTopic()booleanisCancelled()-
Methods inherited from class org.yamcs.http.Context
addTransferredSize, checkObjectPrivileges, checkObjectPrivileges, checkSystemPrivilege, getApi, getClientAddress, getFieldMask, getId, getRequestPrototype, getResponsePrototype, getStatusCode, getTransferredSize, isClientStreaming, isServerStreaming, parseJson, printJson, reportStatusCode, toString
-
-
-
-
Method Detail
-
getMethod
public com.google.protobuf.Descriptors.MethodDescriptor getMethod()
-
addListener
public void addListener(ContextListener listener)
-
cancel
public boolean cancel(Throwable cause)
-
getCancellationCause
public Throwable getCancellationCause()
-
isCancelled
public boolean isCancelled()
-
getTopic
public Topic getTopic()
-
close
public void close()
-
dumpState
public org.yamcs.protobuf.State.CallInfo dumpState()
-
-