Class WebSocket.Listener
public class WebSocket.Listener : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<JVMBridgeListener>JVMBridgeListenerWebSocket.Listener
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeListener.Dispose()JVMBridgeListener.AutoInitJVMBridgeListener.IsBridgeStaticJVMBridgeListener.IsBridgeCloseableJVMBridgeListener.IsBridgeListenerJVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])JVMBridgeBase<JVMBridgeListener>.DynBridgeClazzJVMBridgeBase<JVMBridgeListener>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeInterfaceJVMBridgeBase.IsBridgeAbstract
- Extension Methods
Constructors
Listener()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Listener()
Properties
BridgeClassName
public override string BridgeClassName { get; }
Property Value
OnOnBinary
public Func<WebSocket, ByteBuffer, bool, CompletionStage<object>> OnOnBinary { get; set; }
Property Value
Remarks
If OnOnBinary has a value it takes precedence over corresponding class method
OnOnClose
public Func<WebSocket, int, String, CompletionStage<object>> OnOnClose { get; set; }
Property Value
Remarks
If OnOnClose has a value it takes precedence over corresponding class method
OnOnError
public Action<WebSocket, JVMBridgeException> OnOnError { get; set; }
Property Value
Remarks
If OnOnError has a value it takes precedence over corresponding class method
OnOnOpen
public Action<WebSocket> OnOnOpen { get; set; }
Property Value
Remarks
If OnOnOpen has a value it takes precedence over corresponding class method
OnOnPing
public Func<WebSocket, ByteBuffer, CompletionStage<object>> OnOnPing { get; set; }
Property Value
Remarks
If OnOnPing has a value it takes precedence over corresponding class method
OnOnPong
public Func<WebSocket, ByteBuffer, CompletionStage<object>> OnOnPong { get; set; }
Property Value
Remarks
If OnOnPong has a value it takes precedence over corresponding class method
OnOnText
public Func<WebSocket, CharSequence, bool, CompletionStage<object>> OnOnText { get; set; }
Property Value
Remarks
If OnOnText has a value it takes precedence over corresponding class method
Methods
InitializeHandlers()
Handlers initializer for WebSocket.Listener
protected virtual void InitializeHandlers()
OnBinary(WebSocket, ByteBuffer, bool)
public virtual CompletionStage<object> OnBinary(WebSocket arg0, ByteBuffer arg1, bool arg2)
Parameters
arg0
WebSocketarg1
ByteBufferarg2
bool
Returns
Remarks
The method invokes the default implementation in the JVM interface using OnBinaryDefault(WebSocket, ByteBuffer, bool); override the method to implement a different behavior
OnBinaryDefault(WebSocket, ByteBuffer, bool)
public CompletionStage<object> OnBinaryDefault(WebSocket arg0, ByteBuffer arg1, bool arg2)
Parameters
arg0
WebSocketarg1
ByteBufferarg2
bool
Returns
Remarks
The method invokes the default implementation in the JVM interface
OnClose(WebSocket, int, String)
public virtual CompletionStage<object> OnClose(WebSocket arg0, int arg1, String arg2)
Parameters
Returns
Remarks
The method invokes the default implementation in the JVM interface using OnCloseDefault(WebSocket, int, String); override the method to implement a different behavior
OnCloseDefault(WebSocket, int, String)
public CompletionStage<object> OnCloseDefault(WebSocket arg0, int arg1, String arg2)
Parameters
Returns
Remarks
The method invokes the default implementation in the JVM interface
OnError(WebSocket, JVMBridgeException)
public virtual void OnError(WebSocket arg0, JVMBridgeException arg1)
Parameters
Remarks
The method invokes the default implementation in the JVM interface using OnErrorDefault(WebSocket, JVMBridgeException); override the method to implement a different behavior
OnErrorDefault(WebSocket, JVMBridgeException)
public void OnErrorDefault(WebSocket arg0, JVMBridgeException arg1)
Parameters
Remarks
The method invokes the default implementation in the JVM interface
OnOpen(WebSocket)
public virtual void OnOpen(WebSocket arg0)
Parameters
Remarks
The method invokes the default implementation in the JVM interface using OnOpenDefault(WebSocket); override the method to implement a different behavior
OnOpenDefault(WebSocket)
public void OnOpenDefault(WebSocket arg0)
Parameters
Remarks
The method invokes the default implementation in the JVM interface
OnPing(WebSocket, ByteBuffer)
public virtual CompletionStage<object> OnPing(WebSocket arg0, ByteBuffer arg1)
Parameters
arg0
WebSocketarg1
ByteBuffer
Returns
Remarks
The method invokes the default implementation in the JVM interface using OnPingDefault(WebSocket, ByteBuffer); override the method to implement a different behavior
OnPingDefault(WebSocket, ByteBuffer)
public CompletionStage<object> OnPingDefault(WebSocket arg0, ByteBuffer arg1)
Parameters
arg0
WebSocketarg1
ByteBuffer
Returns
Remarks
The method invokes the default implementation in the JVM interface
OnPong(WebSocket, ByteBuffer)
public virtual CompletionStage<object> OnPong(WebSocket arg0, ByteBuffer arg1)
Parameters
arg0
WebSocketarg1
ByteBuffer
Returns
Remarks
The method invokes the default implementation in the JVM interface using OnPongDefault(WebSocket, ByteBuffer); override the method to implement a different behavior
OnPongDefault(WebSocket, ByteBuffer)
public CompletionStage<object> OnPongDefault(WebSocket arg0, ByteBuffer arg1)
Parameters
arg0
WebSocketarg1
ByteBuffer
Returns
Remarks
The method invokes the default implementation in the JVM interface
OnText(WebSocket, CharSequence, bool)
public virtual CompletionStage<object> OnText(WebSocket arg0, CharSequence arg1, bool arg2)
Parameters
arg0
WebSocketarg1
CharSequencearg2
bool
Returns
Remarks
The method invokes the default implementation in the JVM interface using OnTextDefault(WebSocket, CharSequence, bool); override the method to implement a different behavior
OnTextDefault(WebSocket, CharSequence, bool)
public CompletionStage<object> OnTextDefault(WebSocket arg0, CharSequence arg1, bool arg2)
Parameters
arg0
WebSocketarg1
CharSequencearg2
bool
Returns
Remarks
The method invokes the default implementation in the JVM interface