public class ClientWebSocket extends WebSocket
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.WebSockets.ClientWebSocket
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.Net.WebSockets.Client, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.WebSockets.Client
|
static java.lang.String |
className
Qualified class name: System.Net.WebSockets.ClientWebSocket
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ClientWebSocket()
Initializes a new instance by invoking the .NET constructor.
|
ClientWebSocket(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Abort()
Invokes the .NET member Abort.
|
static ClientWebSocket |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ClientWebSocket, a cast assert is made to check if types are compatible. |
Task |
CloseAsync(WebSocketCloseStatus closeStatus,
java.lang.String statusDescription,
CancellationToken cancellationToken)
Invokes the .NET member CloseAsync.
|
Task |
CloseOutputAsync(WebSocketCloseStatus closeStatus,
java.lang.String statusDescription,
CancellationToken cancellationToken)
Invokes the .NET member CloseOutputAsync.
|
Task |
ConnectAsync(Uri uri,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
Task |
ConnectAsync(Uri uri,
HttpMessageInvoker invoker,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
IReadOnlyDictionary_2 |
getHttpResponseHeaders()
Gets the value of the .NET property HttpResponseHeaders.
|
HttpStatusCode |
getHttpStatusCode()
Gets the value of the .NET property HttpStatusCode.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
ClientWebSocketOptions |
getOptions()
Gets the value of the .NET property Options.
|
Task_1 |
ReceiveAsync(ArraySegment_1 buffer,
CancellationToken cancellationToken)
Invokes the .NET member ReceiveAsync.
|
ValueTask_1 |
ReceiveAsync(Memory_1 buffer,
CancellationToken cancellationToken)
Invokes the .NET member ReceiveAsync.
|
Task |
SendAsync(ArraySegment_1 buffer,
WebSocketMessageType messageType,
boolean endOfMessage,
CancellationToken cancellationToken)
Invokes the .NET member SendAsync.
|
ValueTask |
SendAsync(ReadOnlyMemory_1 buffer,
WebSocketMessageType messageType,
boolean endOfMessage,
CancellationToken cancellationToken)
Invokes the .NET member SendAsync.
|
ValueTask |
SendAsync(ReadOnlyMemory_1 buffer,
WebSocketMessageType messageType,
WebSocketMessageFlags messageFlags,
CancellationToken cancellationToken)
Invokes the .NET member SendAsync.
|
void |
setHttpResponseHeaders(IReadOnlyDictionary_2 HttpResponseHeaders)
Sets the value of the .NET property HttpResponseHeaders.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
close, CreateClientBuffer, CreateClientWebSocket, CreateFromStream, CreateFromStream, CreateServerBuffer, getCloseStatus, getCloseStatusDescription, getDefaultKeepAliveInterval, getState, getSubProtocol, IsApplicationTargeting45, RegisterPrefixespublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ClientWebSocket()
throws java.lang.Throwable,
ArgumentException,
OverflowException,
ArgumentNullException,
PlatformNotSupportedException,
InvalidOperationException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itOverflowException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ClientWebSocket(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Abort()
throws java.lang.Throwable,
ObjectDisposedException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
AggregateException
Abort in class WebSocketjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itAggregateException - if the .NET member raises itpublic static ClientWebSocket cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ClientWebSocket, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedClientWebSocket instancejava.lang.Throwable - in case of error during cast operationpublic Task CloseAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
CloseAsync in class WebSocketcloseStatus - the argument of type WebSocketCloseStatusstatusDescription - the argument of type java.lang.StringcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Task CloseOutputAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
CloseOutputAsync in class WebSocketcloseStatus - the argument of type WebSocketCloseStatusstatusDescription - the argument of type java.lang.StringcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Task ConnectAsync(Uri uri, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException
uri - the argument of type UricancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Task ConnectAsync(Uri uri, HttpMessageInvoker invoker, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
uri - the argument of type Uriinvoker - the argument of type HttpMessageInvokercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable
Dispose in class WebSocketjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IReadOnlyDictionary_2 getHttpResponseHeaders() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic HttpStatusCode getHttpStatusCode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class WebSocketpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class WebSocketpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class WebSocketnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class WebSocketpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class WebSocketpublic ClientWebSocketOptions getOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task_1 ReceiveAsync(ArraySegment_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
ReceiveAsync in class WebSocketbuffer - the argument of type ArraySegment_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic ValueTask_1 ReceiveAsync(Memory_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException
ReceiveAsync in class WebSocketbuffer - the argument of type Memory_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Task SendAsync(ArraySegment_1 buffer, WebSocketMessageType messageType, boolean endOfMessage, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
SendAsync in class WebSocketbuffer - the argument of type ArraySegment_1messageType - the argument of type WebSocketMessageTypeendOfMessage - the argument of type booleancancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic ValueTask SendAsync(ReadOnlyMemory_1 buffer, WebSocketMessageType messageType, boolean endOfMessage, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException
SendAsync in class WebSocketbuffer - the argument of type ReadOnlyMemory_1messageType - the argument of type WebSocketMessageTypeendOfMessage - the argument of type booleancancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ValueTask SendAsync(ReadOnlyMemory_1 buffer, WebSocketMessageType messageType, WebSocketMessageFlags messageFlags, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
SendAsync in class WebSocketbuffer - the argument of type ReadOnlyMemory_1messageType - the argument of type WebSocketMessageTypemessageFlags - the argument of type WebSocketMessageFlagscancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setHttpResponseHeaders(IReadOnlyDictionary_2 HttpResponseHeaders) throws java.lang.Throwable
HttpResponseHeaders - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class WebSocketinstance - the new underlying object