public class HttpListener extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.HttpListener
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.HttpListener, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.HttpListener
|
static java.lang.String |
className
Qualified class name: System.Net.HttpListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
HttpListener()
Initializes a new instance by invoking the .NET constructor.
|
HttpListener(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Abort()
Invokes the .NET member Abort.
|
IAsyncResult |
BeginGetContext(AsyncCallback callback,
NetObject state)
Invokes the .NET member BeginGetContext.
|
static HttpListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into HttpListener, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close()
Invokes the .NET member Close.
|
HttpListenerContext |
EndGetContext(IAsyncResult asyncResult)
Invokes the .NET member EndGetContext.
|
AuthenticationSchemes |
getAuthenticationSchemes()
Gets the value of the .NET property AuthenticationSchemes.
|
AuthenticationSchemeSelector |
getAuthenticationSchemeSelectorDelegate()
Gets the value of the .NET property AuthenticationSchemeSelectorDelegate.
|
HttpListenerContext |
GetContext()
Invokes the .NET member GetContext.
|
Task_1 |
GetContextAsync()
Invokes the .NET member GetContextAsync.
|
ServiceNameCollection |
getDefaultServiceNames()
Gets the value of the .NET property DefaultServiceNames.
|
ExtendedProtectionPolicy |
getExtendedProtectionPolicy()
Gets the value of the .NET property ExtendedProtectionPolicy.
|
boolean |
getIgnoreWriteExceptions()
Gets the value of the .NET property IgnoreWriteExceptions.
|
boolean |
getIsListening()
Gets the value of the .NET property IsListening.
|
static boolean |
getIsSupported()
Gets the value of the .NET property IsSupported.
|
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. |
HttpListenerPrefixCollection |
getPrefixes()
Gets the value of the .NET property Prefixes.
|
java.lang.String |
getRealm()
Gets the value of the .NET property Realm.
|
HttpListenerTimeoutManager |
getTimeoutManager()
Gets the value of the .NET property TimeoutManager.
|
boolean |
getUnsafeConnectionNtlmAuthentication()
Gets the value of the .NET property UnsafeConnectionNtlmAuthentication.
|
void |
setAuthenticationSchemes(AuthenticationSchemes AuthenticationSchemes)
Sets the value of the .NET property AuthenticationSchemes.
|
void |
setAuthenticationSchemeSelectorDelegate(AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate)
Sets the value of the .NET property AuthenticationSchemeSelectorDelegate.
|
void |
setExtendedProtectionPolicy(ExtendedProtectionPolicy ExtendedProtectionPolicy)
Sets the value of the .NET property ExtendedProtectionPolicy.
|
void |
setIgnoreWriteExceptions(boolean IgnoreWriteExceptions)
Sets the value of the .NET property IgnoreWriteExceptions.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setRealm(java.lang.String Realm)
Sets the value of the .NET property Realm.
|
void |
setUnsafeConnectionNtlmAuthentication(boolean UnsafeConnectionNtlmAuthentication)
Sets the value of the .NET property UnsafeConnectionNtlmAuthentication.
|
void |
Start()
Invokes the .NET member Start.
|
void |
Stop()
Invokes the .NET member Stop.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public HttpListener()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic HttpListener(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,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic IAsyncResult BeginGetContext(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArgumentNullException, EventSourceException, HttpListenerException, ApplicationException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, Win32Exception, TaskSchedulerException
callback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.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 itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpListenerException - if the .NET member raises itApplicationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itTaskSchedulerException - if the .NET member raises itpublic static HttpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into HttpListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHttpListener instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
OutOfMemoryException,
ArrayTypeMismatchException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic HttpListenerContext EndGetContext(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, WaitHandleCannotBeOpenedException, AbandonedMutexException
asyncResult - the argument of type IAsyncResultjava.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 itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic AuthenticationSchemes getAuthenticationSchemes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic AuthenticationSchemeSelector getAuthenticationSchemeSelectorDelegate() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic HttpListenerContext GetContext() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArgumentNullException, EventSourceException, HttpListenerException, ArrayTypeMismatchException, Win32Exception, MissingMethodException, TargetInvocationException
java.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 itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpListenerException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic Task_1 GetContextAsync() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, OutOfMemoryException, FormatException, EventSourceException, HttpListenerException, NotSupportedException, Win32Exception, WaitHandleCannotBeOpenedException, AbandonedMutexException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpListenerException - if the .NET member raises itNotSupportedException - if the .NET member raises itWin32Exception - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic ServiceNameCollection getDefaultServiceNames() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ExtendedProtectionPolicy getExtendedProtectionPolicy() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIgnoreWriteExceptions()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsListening()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getIsSupported()
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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic HttpListenerPrefixCollection getPrefixes() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
java.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 java.lang.String getRealm()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic HttpListenerTimeoutManager getTimeoutManager() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, EventSourceException, HttpListenerException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - 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 itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpListenerException - if the .NET member raises itpublic boolean getUnsafeConnectionNtlmAuthentication()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setAuthenticationSchemes(AuthenticationSchemes AuthenticationSchemes) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
AuthenticationSchemes - the new value of the propertyjava.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 void setAuthenticationSchemeSelectorDelegate(AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
AuthenticationSchemeSelectorDelegate - the new value of the propertyjava.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 void setExtendedProtectionPolicy(ExtendedProtectionPolicy ExtendedProtectionPolicy) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
ExtendedProtectionPolicy - the new value of the propertyjava.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 void setIgnoreWriteExceptions(boolean IgnoreWriteExceptions)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
IgnoreWriteExceptions - the new value of the propertyjava.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 void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setRealm(java.lang.String Realm)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
Realm - the new value of the propertyjava.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 void setUnsafeConnectionNtlmAuthentication(boolean UnsafeConnectionNtlmAuthentication)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
NullReferenceException,
ArgumentNullException
UnsafeConnectionNtlmAuthentication - the new value of the propertyjava.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 itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void Start()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
EventSourceException,
HttpListenerException,
MissingMethodException,
TargetInvocationException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpListenerException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic void Stop()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises it