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.StringassemblyFullNameFully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: Systemstatic 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, 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.ThrowableInternal 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.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionObjectDisposedExceptionHttpListenerException
-
-
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, 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.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSecurityExceptionAccessViolationExceptionHttpListenerExceptionWin32ExceptionThreadAbortExceptionFormatExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
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.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexException
-
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.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionKeyNotFoundExceptionIndexOutOfRangeExceptionHttpListenerExceptionAbandonedMutexExceptionCultureNotFoundExceptionSecurityExceptionIOExceptionPlatformNotSupportedExceptionInvalidCastExceptionAccessViolationExceptionWin32ExceptionThreadAbortExceptionCryptographicExceptionFormatException
-
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.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionIndexOutOfRangeExceptionHttpListenerException
-
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:
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, ObjectDisposedException- Throws:
java.lang.ThrowableObjectDisposedException
-
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.ThrowableObjectDisposedExceptionArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionFormatException
-
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.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionInvalidOperationExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionWin32ExceptionConfigurationExceptionInvalidCastExceptionConfigurationErrorsExceptionMissingMethodExceptionTargetInvocationException
-
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.ThrowableObjectDisposedException
-
-