Package system.net
Class HttpListenerResponse
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.HttpListenerResponse
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDisposable
public class HttpListenerResponse extends NetObject implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.Net.HttpListenerResponse, 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.HttpListenerResponse
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=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Net.HttpListenerstatic java.lang.StringclassNameQualified class name: System.Net.HttpListenerResponsestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HttpListenerResponse()HttpListenerResponse(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAbort()voidAddHeader(java.lang.String name, java.lang.String value)voidAppendCookie(Cookie cookie)voidAppendHeader(java.lang.String name, java.lang.String value)static HttpListenerResponsecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoHttpListenerResponse, a cast assert is made to check if types are compatible.voidclose()voidClose()voidClose(byte[] responseEntity, boolean willBlock)voidClose(JCORefOut dupParam0, boolean dupParam1)voidCopyFrom(HttpListenerResponse templateResponse)EncodinggetContentEncoding()longgetContentLength64()java.lang.StringgetContentType()CookieCollectiongetCookies()WebHeaderCollectiongetHeaders()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypebooleangetKeepAlive()StreamgetOutputStream()VersiongetProtocolVersion()java.lang.StringgetRedirectLocation()booleangetSendChunked()intgetStatusCode()java.lang.StringgetStatusDescription()voidRedirect(java.lang.String url)voidsetContentEncoding(Encoding ContentEncoding)voidsetContentLength64(long ContentLength64)voidsetContentType(java.lang.String ContentType)voidSetCookie(Cookie cookie)voidsetCookies(CookieCollection Cookies)voidsetHeaders(WebHeaderCollection Headers)voidsetJCOInstance(JCObject instance)voidsetKeepAlive(boolean KeepAlive)voidsetProtocolVersion(Version ProtocolVersion)voidsetRedirectLocation(java.lang.String RedirectLocation)voidsetSendChunked(boolean SendChunked)voidsetStatusCode(int StatusCode)voidsetStatusDescription(java.lang.String StatusDescription)-
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.HttpListenerResponse- See Also:
- Constant Field Values
-
-
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 HttpListenerResponse cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHttpListenerResponse, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
HttpListenerResponseinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Abort
public void Abort() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException- Throws:
java.lang.ThrowableObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullException
-
AddHeader
public void AddHeader(java.lang.String name, java.lang.String value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, IndexOutOfRangeException
-
AppendCookie
public void AppendCookie(Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, FormatException, EventSourceException
-
AppendHeader
public void AppendHeader(java.lang.String name, java.lang.String value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, IndexOutOfRangeException
-
Close
public void Close() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, ArgumentNullException, EventSourceException
-
Close
public void Close(byte[] responseEntity, boolean willBlock) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullException
-
Close
public void Close(JCORefOut dupParam0, boolean dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullException
-
CopyFrom
public void CopyFrom(HttpListenerResponse templateResponse) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException
-
Redirect
public void Redirect(java.lang.String url) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, IndexOutOfRangeException, ObjectDisposedException, ProtocolViolationException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionEventSourceExceptionIndexOutOfRangeExceptionObjectDisposedExceptionProtocolViolationException
-
SetCookie
public void SetCookie(Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, FormatException, EventSourceException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getKeepAlive
public boolean getKeepAlive() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setKeepAlive
public void setKeepAlive(boolean KeepAlive) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getSendChunked
public boolean getSendChunked() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setSendChunked
public void setSendChunked(boolean SendChunked) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ProtocolViolationException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionProtocolViolationException
-
getStatusCode
public int getStatusCode() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setStatusCode
public void setStatusCode(int StatusCode) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ProtocolViolationException
-
getContentLength64
public long getContentLength64() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setContentLength64
public void setContentLength64(long ContentLength64) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
getOutputStream
public Stream getOutputStream() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException
-
getCookies
public CookieCollection getCookies() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCookies
public void setCookies(CookieCollection Cookies) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHeaders
public WebHeaderCollection getHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHeaders
public void setHeaders(WebHeaderCollection Headers) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionInvalidCastException
-
getContentType
public java.lang.String getContentType() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, OutOfMemoryException
-
setContentType
public void setContentType(java.lang.String ContentType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException
-
getRedirectLocation
public java.lang.String getRedirectLocation() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, ArrayTypeMismatchException
-
setRedirectLocation
public void setRedirectLocation(java.lang.String RedirectLocation) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException
-
getStatusDescription
public java.lang.String getStatusDescription() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setStatusDescription
public void setStatusDescription(java.lang.String StatusDescription) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException
-
getContentEncoding
public Encoding getContentEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setContentEncoding
public void setContentEncoding(Encoding ContentEncoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getProtocolVersion
public Version getProtocolVersion() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
setProtocolVersion
public void setProtocolVersion(Version ProtocolVersion) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
-