Package system.net
Class HttpListener
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.HttpListener
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDisposable
public class HttpListener extends NetObject implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.Net.HttpListener, System.Net.HttpListener, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.HttpListener
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Net.HttpListener, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Net.HttpListenerstatic java.lang.StringclassNameQualified class name: System.Net.HttpListenerstatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HttpListener()HttpListener(java.lang.Object instance)Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.HttpListener, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.HttpListener- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.HttpListener- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
HttpListener
public HttpListener(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
HttpListener
public HttpListener() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDisposable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDisposable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDisposable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDisposable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static HttpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHttpListener, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
HttpListenerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
BeginGetContext
public IAsyncResult BeginGetContext(AsyncCallback callback, NetObject state) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException, HttpListenerException, ApplicationException, ThreadStateException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, Win32Exception, TaskSchedulerException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionHttpListenerExceptionApplicationExceptionThreadStateExceptionMissingMethodExceptionTargetInvocationExceptionArrayTypeMismatchExceptionWin32ExceptionTaskSchedulerException
-
EndGetContext
public HttpListenerContext EndGetContext(IAsyncResult asyncResult) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, NotSupportedException, ArgumentException, IndexOutOfRangeException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, EventSourceException, KeyNotFoundException, AbandonedMutexException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatExceptionEventSourceExceptionKeyNotFoundExceptionAbandonedMutexException
-
GetContext
public HttpListenerContext GetContext() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, FormatException, EventSourceException, HttpListenerException, UnreachableException, ArrayTypeMismatchException, Win32Exception, MissingMethodException, TargetInvocationException, ThreadStateException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionEventSourceExceptionHttpListenerExceptionUnreachableExceptionArrayTypeMismatchExceptionWin32ExceptionMissingMethodExceptionTargetInvocationExceptionThreadStateException
-
Abort
public void Abort() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceException
-
Close
public void Close() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, IndexOutOfRangeException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, ArgumentNullException, EventSourceException, KeyNotFoundException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionKeyNotFoundException
-
Start
public void Start() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException, HttpListenerException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionHttpListenerExceptionMissingMethodExceptionTargetInvocationException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getIgnoreWriteExceptions
public boolean getIgnoreWriteExceptions() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIgnoreWriteExceptions
public void setIgnoreWriteExceptions(boolean IgnoreWriteExceptions) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedException
-
getIsListening
public boolean getIsListening() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsSupported
public static boolean getIsSupported() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getUnsafeConnectionNtlmAuthentication
public boolean getUnsafeConnectionNtlmAuthentication() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setUnsafeConnectionNtlmAuthentication
public void setUnsafeConnectionNtlmAuthentication(boolean UnsafeConnectionNtlmAuthentication) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NullReferenceException, ArgumentNullException
-
getAuthenticationSchemes
public AuthenticationSchemes getAuthenticationSchemes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemes
public void setAuthenticationSchemes(AuthenticationSchemes AuthenticationSchemes) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedException
-
getAuthenticationSchemeSelectorDelegate
public AuthenticationSchemeSelector getAuthenticationSchemeSelectorDelegate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemeSelectorDelegate
public void setAuthenticationSchemeSelectorDelegate(AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedException
-
getPrefixes
public HttpListenerPrefixCollection getPrefixes() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedException
-
getTimeoutManager
public HttpListenerTimeoutManager getTimeoutManager() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, EventSourceException, HttpListenerException
-
getExtendedProtectionPolicy
public ExtendedProtectionPolicy getExtendedProtectionPolicy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setExtendedProtectionPolicy
public void setExtendedProtectionPolicy(ExtendedProtectionPolicy ExtendedProtectionPolicy) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getDefaultServiceNames
public ServiceNameCollection getDefaultServiceNames() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException
-
getRealm
public java.lang.String getRealm() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setRealm
public void setRealm(java.lang.String Realm) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedException
-
-