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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: Systemstatic 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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- 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, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, OutOfMemoryException, PlatformNotSupportedException, ObjectDisposedException, HttpListenerException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
OutOfMemoryException
PlatformNotSupportedException
ObjectDisposedException
HttpListenerException
-
-
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, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, IndexOutOfRangeException, CultureNotFoundException, SecurityException, AccessViolationException, HttpListenerException, Win32Exception, ThreadAbortException, FormatException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
IndexOutOfRangeException
CultureNotFoundException
SecurityException
AccessViolationException
HttpListenerException
Win32Exception
ThreadAbortException
FormatException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
EndGetContext
public HttpListenerContext EndGetContext(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
-
GetContext
public HttpListenerContext GetContext() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, KeyNotFoundException, IndexOutOfRangeException, HttpListenerException, AbandonedMutexException, CultureNotFoundException, SecurityException, IOException, PlatformNotSupportedException, InvalidCastException, AccessViolationException, Win32Exception, ThreadAbortException, CryptographicException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
KeyNotFoundException
IndexOutOfRangeException
HttpListenerException
AbandonedMutexException
CultureNotFoundException
SecurityException
IOException
PlatformNotSupportedException
InvalidCastException
AccessViolationException
Win32Exception
ThreadAbortException
CryptographicException
FormatException
-
Abort
public void Abort() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException
-
Start
public void Start() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, IndexOutOfRangeException, HttpListenerException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
IndexOutOfRangeException
HttpListenerException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException
-
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, ObjectDisposedException
- Throws:
java.lang.Throwable
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, ObjectDisposedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
FormatException
-
getAuthenticationSchemes
public AuthenticationSchemes getAuthenticationSchemes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemes
public void setAuthenticationSchemes(AuthenticationSchemes AuthenticationSchemes) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
getAuthenticationSchemeSelectorDelegate
public AuthenticationSchemeSelector getAuthenticationSchemeSelectorDelegate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationSchemeSelectorDelegate
public void setAuthenticationSchemeSelectorDelegate(AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
getPrefixes
public HttpListenerPrefixCollection getPrefixes() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException
-
getTimeoutManager
public HttpListenerTimeoutManager getTimeoutManager() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, HttpListenerException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException
-
getExtendedProtectionPolicy
public ExtendedProtectionPolicy getExtendedProtectionPolicy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setExtendedProtectionPolicy
public void setExtendedProtectionPolicy(ExtendedProtectionPolicy ExtendedProtectionPolicy) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, Win32Exception, ConfigurationException, InvalidCastException, ConfigurationErrorsException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
InvalidOperationException
MissingManifestResourceException
PlatformNotSupportedException
NotSupportedException
Win32Exception
ConfigurationException
InvalidCastException
ConfigurationErrorsException
MissingMethodException
TargetInvocationException
-
getDefaultServiceNames
public ServiceNameCollection getDefaultServiceNames() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, UriFormatException, NotSupportedException
-
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, ObjectDisposedException
- Throws:
java.lang.Throwable
ObjectDisposedException
-
-