public class WebSocket extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.WebSockets.WebSocket
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
static java.lang.String |
className
Qualified class name: System.Net.WebSockets.WebSocket
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
WebSocket() |
WebSocket(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Abort() |
static WebSocket |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into WebSocket, a cast assert is made to check if types are compatible. |
void |
close() |
Task |
CloseAsync(WebSocketCloseStatus closeStatus,
java.lang.String statusDescription,
CancellationToken cancellationToken) |
Task |
CloseOutputAsync(WebSocketCloseStatus closeStatus,
java.lang.String statusDescription,
CancellationToken cancellationToken) |
static ArraySegment_1 |
CreateClientBuffer(int receiveBufferSize,
int sendBufferSize) |
static WebSocket |
CreateClientWebSocket(Stream innerStream,
java.lang.String subProtocol,
int receiveBufferSize,
int sendBufferSize,
TimeSpan keepAliveInterval,
boolean useZeroMaskingKey,
ArraySegment_1 internalBuffer) |
static ArraySegment_1 |
CreateServerBuffer(int receiveBufferSize) |
void |
Dispose() |
Nullable_1 |
getCloseStatus() |
java.lang.String |
getCloseStatusDescription() |
static TimeSpan |
getDefaultKeepAliveInterval() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
org.mases.jcobridge.JCType |
getJCOType()
Returns the instantiated class Type
|
WebSocketState |
getState() |
java.lang.String |
getSubProtocol() |
static boolean |
IsApplicationTargeting45() |
Task_1 |
ReceiveAsync(ArraySegment_1 buffer,
CancellationToken cancellationToken) |
static void |
RegisterPrefixes() |
Task |
SendAsync(ArraySegment_1 buffer,
WebSocketMessageType messageType,
boolean endOfMessage,
CancellationToken cancellationToken) |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic WebSocket()
throws java.lang.Throwable
java.lang.Throwablepublic WebSocket(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void Abort()
throws java.lang.Throwable
java.lang.Throwablepublic static WebSocket cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into WebSocket, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedWebSocket instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic Task CloseAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable
java.lang.Throwablepublic Task CloseOutputAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable
java.lang.Throwablepublic static ArraySegment_1 CreateClientBuffer(int receiveBufferSize, int sendBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionpublic static WebSocket CreateClientWebSocket(Stream innerStream, java.lang.String subProtocol, int receiveBufferSize, int sendBufferSize, TimeSpan keepAliveInterval, boolean useZeroMaskingKey, ArraySegment_1 internalBuffer) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WebSocketException, AccessViolationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWebSocketExceptionAccessViolationExceptionpublic static ArraySegment_1 CreateServerBuffer(int receiveBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionpublic void Dispose()
throws java.lang.Throwable
java.lang.Throwablepublic Nullable_1 getCloseStatus() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getCloseStatusDescription()
throws java.lang.Throwable
java.lang.Throwablepublic static TimeSpan getDefaultKeepAliveInterval() throws java.lang.Throwable, ArgumentException, OverflowException, InvalidOperationException
java.lang.ThrowableArgumentExceptionOverflowExceptionInvalidOperationExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic WebSocketState getState() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getSubProtocol()
throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsApplicationTargeting45()
throws java.lang.Throwable
java.lang.Throwablepublic Task_1 ReceiveAsync(ArraySegment_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable
java.lang.Throwablepublic static void RegisterPrefixes()
throws java.lang.Throwable,
IndexOutOfRangeException,
ArgumentNullException,
ArgumentException,
FormatException,
InvalidOperationException,
NotSupportedException,
MissingManifestResourceException,
ArgumentOutOfRangeException,
ConfigurationException,
InvalidCastException,
ConfigurationErrorsException,
SecurityException,
MemberAccessException,
NullReferenceException,
UriFormatException,
OutOfMemoryException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionNotSupportedExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionConfigurationExceptionInvalidCastExceptionConfigurationErrorsExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionpublic Task SendAsync(ArraySegment_1 buffer, WebSocketMessageType messageType, boolean endOfMessage, CancellationToken cancellationToken) throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class NetObject