public class HttpListenerResponse extends NetObject implements IDisposable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.HttpListenerResponse
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.HttpListenerResponse
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
HttpListenerResponse() |
HttpListenerResponse(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Abort() |
void |
AddHeader(java.lang.String name,
java.lang.String value) |
void |
AppendCookie(Cookie cookie) |
void |
AppendHeader(java.lang.String name,
java.lang.String value) |
static HttpListenerResponse |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into HttpListenerResponse, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
void |
Close(byte[] responseEntity,
boolean willBlock) |
void |
Close(JCORefOut dupParam0,
boolean dupParam1) |
void |
CopyFrom(HttpListenerResponse templateResponse) |
Encoding |
getContentEncoding() |
long |
getContentLength64() |
java.lang.String |
getContentType() |
CookieCollection |
getCookies() |
WebHeaderCollection |
getHeaders() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
boolean |
getKeepAlive() |
Stream |
getOutputStream() |
Version |
getProtocolVersion() |
java.lang.String |
getRedirectLocation() |
boolean |
getSendChunked() |
int |
getStatusCode() |
java.lang.String |
getStatusDescription() |
void |
Redirect(java.lang.String url) |
void |
setContentEncoding(Encoding ContentEncoding) |
void |
setContentLength64(long ContentLength64) |
void |
setContentType(java.lang.String ContentType) |
void |
SetCookie(Cookie cookie) |
void |
setCookies(CookieCollection Cookies) |
void |
setHeaders(WebHeaderCollection Headers) |
void |
setJCOInstance(JCObject instance) |
void |
setKeepAlive(boolean KeepAlive) |
void |
setProtocolVersion(Version ProtocolVersion) |
void |
setRedirectLocation(java.lang.String RedirectLocation) |
void |
setSendChunked(boolean SendChunked) |
void |
setStatusCode(int StatusCode) |
void |
setStatusDescription(java.lang.String StatusDescription) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringDispose, ToIDisposablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public HttpListenerResponse()
throws java.lang.Throwable
java.lang.Throwablepublic HttpListenerResponse(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void Abort()
throws java.lang.Throwable,
ObjectDisposedException,
PlatformNotSupportedException,
ArgumentNullException
java.lang.ThrowableObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullExceptionpublic void AddHeader(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
OutOfMemoryException,
FormatException,
EventSourceException,
IndexOutOfRangeException
public void AppendCookie(Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, FormatException, EventSourceException
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
public static HttpListenerResponse cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into HttpListenerResponse, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHttpListenerResponse 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
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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionpublic void Close(JCORefOut dupParam0, boolean dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionArgumentNullExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionpublic void CopyFrom(HttpListenerResponse templateResponse) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException
public Encoding getContentEncoding() throws java.lang.Throwable
java.lang.Throwablepublic long getContentLength64()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getContentType()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
OutOfMemoryException
public CookieCollection getCookies() throws java.lang.Throwable
java.lang.Throwablepublic WebHeaderCollection getHeaders() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDisposablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDisposablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDisposablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDisposablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDisposablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic boolean getKeepAlive()
throws java.lang.Throwable
java.lang.Throwablepublic Stream getOutputStream() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException
public Version getProtocolVersion() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public java.lang.String getRedirectLocation()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
OutOfMemoryException,
ArrayTypeMismatchException
public boolean getSendChunked()
throws java.lang.Throwable
java.lang.Throwablepublic int getStatusCode()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getStatusDescription()
throws java.lang.Throwable
java.lang.Throwablepublic void Redirect(java.lang.String url)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
OutOfMemoryException,
FormatException,
EventSourceException,
IndexOutOfRangeException,
ObjectDisposedException,
ProtocolViolationException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionFormatExceptionEventSourceExceptionIndexOutOfRangeExceptionObjectDisposedExceptionProtocolViolationExceptionpublic void setContentEncoding(Encoding ContentEncoding) throws java.lang.Throwable
java.lang.Throwablepublic void setContentLength64(long ContentLength64)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException
public void setContentType(java.lang.String ContentType)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException
public void SetCookie(Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, FormatException, EventSourceException
public void setCookies(CookieCollection Cookies) throws java.lang.Throwable
java.lang.Throwablepublic void setHeaders(WebHeaderCollection Headers) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, InvalidCastException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionInvalidCastExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setKeepAlive(boolean KeepAlive)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic void setProtocolVersion(Version ProtocolVersion) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic void setRedirectLocation(java.lang.String RedirectLocation)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException
public void setSendChunked(boolean SendChunked)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
ProtocolViolationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionProtocolViolationExceptionpublic void setStatusCode(int StatusCode)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
ProtocolViolationException
public void setStatusDescription(java.lang.String StatusDescription)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
IndexOutOfRangeException