Table of Contents

Class WebSocket.Listener

Namespace
Java.Net.Http
Assembly
MASES.JNet.dll
public class WebSocket.Listener : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
WebSocket.Listener
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeListener.Dispose()
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.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

string

OnOnBinary

public Func<WebSocket, ByteBuffer, bool, CompletionStage<object>> OnOnBinary { get; set; }

Property Value

Func<WebSocket, ByteBuffer, bool, CompletionStage<object>>

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

Func<WebSocket, int, String, CompletionStage<object>>

Remarks

If OnOnClose has a value it takes precedence over corresponding class method

OnOnError

public Action<WebSocket, JVMBridgeException> OnOnError { get; set; }

Property Value

Action<WebSocket, JVMBridgeException>

Remarks

If OnOnError has a value it takes precedence over corresponding class method

OnOnOpen

public Action<WebSocket> OnOnOpen { get; set; }

Property Value

Action<WebSocket>

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

Func<WebSocket, ByteBuffer, CompletionStage<object>>

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

Func<WebSocket, ByteBuffer, CompletionStage<object>>

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

Func<WebSocket, CharSequence, bool, CompletionStage<object>>

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

arg2 bool

bool

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

arg2 bool

bool

Returns

CompletionStage<object>

CompletionStage

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

arg0 WebSocket

WebSocket

arg1 int

int

arg2 String

String

Returns

CompletionStage<object>

CompletionStage

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

arg0 WebSocket

WebSocket

arg1 int

int

arg2 String

String

Returns

CompletionStage<object>

CompletionStage

Remarks

The method invokes the default implementation in the JVM interface

OnError(WebSocket, JVMBridgeException)

public virtual void OnError(WebSocket arg0, JVMBridgeException arg1)

Parameters

arg0 WebSocket

WebSocket

arg1 JVMBridgeException

Throwable

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

arg0 WebSocket

WebSocket

arg1 JVMBridgeException

Throwable

Remarks

The method invokes the default implementation in the JVM interface

OnOpen(WebSocket)

public virtual void OnOpen(WebSocket arg0)

Parameters

arg0 WebSocket

WebSocket

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

arg0 WebSocket

WebSocket

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 ByteBuffer

ByteBuffer

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 CharSequence

CharSequence

arg2 bool

bool

Returns

CompletionStage<object>

CompletionStage

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 WebSocket

WebSocket

arg1 CharSequence

CharSequence

arg2 bool

bool

Returns

CompletionStage<object>

CompletionStage

Remarks

The method invokes the default implementation in the JVM interface