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=8.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=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Net.HttpListenerstatic java.lang.StringclassNameQualified class name: System.Net.HttpListenerstatic 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=8.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
-
-
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, ArgumentNullException, PlatformNotSupportedException, 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(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public 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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, EventSourceException, HttpListenerException, ApplicationException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ArrayTypeMismatchException, Win32Exception, TaskSchedulerException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionHttpListenerExceptionApplicationExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionArrayTypeMismatchExceptionWin32ExceptionTaskSchedulerException
-
EndGetContext
public HttpListenerContext EndGetContext(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, WaitHandleCannotBeOpenedException, ArrayTypeMismatchException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionWaitHandleCannotBeOpenedExceptionArrayTypeMismatchExceptionAbandonedMutexException
-
GetContext
public HttpListenerContext GetContext() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, EventSourceException, HttpListenerException, ArrayTypeMismatchException, Win32Exception, MissingMethodException, TargetInvocationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionHttpListenerExceptionArrayTypeMismatchExceptionWin32ExceptionMissingMethodExceptionTargetInvocationException
-
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, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException
-
Start
public void Start() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException, HttpListenerException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionHttpListenerExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException
-
getAuthenticationSchemes
public AuthenticationSchemes getAuthenticationSchemes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemes
public void setAuthenticationSchemes(AuthenticationSchemes AuthenticationSchemes) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getAuthenticationSchemeSelectorDelegate
public AuthenticationSchemeSelector getAuthenticationSchemeSelectorDelegate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemeSelectorDelegate
public void setAuthenticationSchemeSelectorDelegate(AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getPrefixes
public HttpListenerPrefixCollection getPrefixes() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getDefaultServiceNames
public ServiceNameCollection getDefaultServiceNames() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
-
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
-