Package system.net.websockets
Class WebSocket
- java.lang.Object
- 
- org.mases.jcobridge.netreflection.NetObject
- 
- system.net.websockets.WebSocket
 
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable,- IJCOBridgeReflected
 - Direct Known Subclasses:
- ClientWebSocket
 
 public class WebSocket extends NetObject implements java.lang.AutoCloseable The base .NET class managing System.Net.WebSockets.WebSocket, System.Net.WebSockets, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.WebSockets.WebSocket Powered by JCOBridge: more info at https://www.jcobridge.com - Author:
- MASES s.r.l https://masesgroup.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Net.WebSockets, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Net.WebSocketsstatic java.lang.StringclassNameQualified class name: System.Net.WebSockets.WebSocketstatic JCTypeclassTypeThe type managed from JCOBridge.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAbort()static WebSocketcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoWebSocket, a cast assert is made to check if types are compatible.voidclose()TaskCloseAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken)TaskCloseOutputAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken)static WebSocketCreateFromStream(Stream stream, boolean isServer, java.lang.String subProtocol, TimeSpan keepAliveInterval)static WebSocketCreateFromStream(Stream stream, WebSocketCreationOptions options)voidDispose()java.lang.StringgetCloseStatusDescription()static TimeSpangetDefaultKeepAliveInterval()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeWebSocketStategetState()java.lang.StringgetSubProtocol()static booleanIsApplicationTargeting45()static voidRegisterPrefixes()voidsetJCOInstance(JCObject instance)
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic static final java.lang.String assemblyFullName Fully assembly qualified name: System.Net.WebSockets, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: System.Net.WebSockets- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Net.WebSockets.WebSocket- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- NetObject
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- NetObject
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- NetObject
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- NetObject
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic static WebSocket cast(IJCOBridgeReflected from) throws java.lang.Throwable Try to cast theIJCOBridgeReflectedinstance intoWebSocket, a cast assert is made to check if types are compatible.- Parameters:
- from-- IJCOBridgeReflectedinstance to be casted
- Returns:
- WebSocketinstance
- Throws:
- java.lang.Throwable- in case of error during cast operation
 
 - 
IsApplicationTargeting45public static boolean IsApplicationTargeting45() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
CreateFromStreampublic static WebSocket CreateFromStream(Stream stream, boolean isServer, java.lang.String subProtocol, TimeSpan keepAliveInterval) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, UnreachableException, OverflowException, FormatException, WebSocketException, OutOfMemoryException, TaskSchedulerException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- IndexOutOfRangeException
- UnreachableException
- OverflowException
- FormatException
- WebSocketException
- OutOfMemoryException
- TaskSchedulerException
 
 - 
CreateFromStreampublic static WebSocket CreateFromStream(Stream stream, WebSocketCreationOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException 
 - 
CloseAsyncpublic Task CloseAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
CloseOutputAsyncpublic Task CloseOutputAsync(WebSocketCloseStatus closeStatus, java.lang.String statusDescription, CancellationToken cancellationToken) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Abortpublic void Abort() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
Disposepublic void Dispose() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
RegisterPrefixespublic static void RegisterPrefixes() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
 - 
closepublic void close() throws java.lang.Exception- Specified by:
- closein interface- java.lang.AutoCloseable
- Throws:
- java.lang.Exception
 
 - 
getStatepublic WebSocketState getState() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getCloseStatusDescriptionpublic java.lang.String getCloseStatusDescription() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getSubProtocolpublic java.lang.String getSubProtocol() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getDefaultKeepAliveIntervalpublic static TimeSpan getDefaultKeepAliveInterval() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException 
 
- 
 
-