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=9.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.String
assemblyFullName
Fully assembly qualified name: System.Net.HttpListener, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Net.HttpListenerstatic java.lang.String
className
Qualified class name: System.Net.HttpListenerstatic JCType
classType
The 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=9.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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HttpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHttpListener
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HttpListener
instance- 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, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArgumentNullException, EventSourceException, HttpListenerException, ApplicationException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, Win32Exception, TaskSchedulerException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
OutOfMemoryException
ArgumentNullException
EventSourceException
HttpListenerException
ApplicationException
MissingMethodException
TargetInvocationException
ArrayTypeMismatchException
Win32Exception
TaskSchedulerException
-
EndGetContext
public HttpListenerContext EndGetContext(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, WaitHandleCannotBeOpenedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
OutOfMemoryException
FormatException
ArgumentNullException
EventSourceException
WaitHandleCannotBeOpenedException
AbandonedMutexException
-
GetContext
public HttpListenerContext GetContext() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArgumentNullException, EventSourceException, HttpListenerException, ArrayTypeMismatchException, Win32Exception, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
OutOfMemoryException
ArgumentNullException
EventSourceException
HttpListenerException
ArrayTypeMismatchException
Win32Exception
MissingMethodException
TargetInvocationException
-
Abort
public void Abort() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
ArgumentException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
OutOfMemoryException
EventSourceException
-
Close
public void Close() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentOutOfRangeException, InvalidOperationException, 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, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
ArgumentException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
OutOfMemoryException
EventSourceException
HttpListenerException
MissingMethodException
TargetInvocationException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
ArgumentException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
OutOfMemoryException
EventSourceException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
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, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
getPrefixes
public HttpListenerPrefixCollection getPrefixes() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
-