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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
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,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException
public void AddHeader(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException
public void AppendCookie(Cookie cookie) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException
public void AppendHeader(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException
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,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException
public void Close(byte[] responseEntity,
boolean willBlock)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException,
ObjectDisposedException,
ThreadAbortException,
TaskSchedulerException,
TaskCanceledException,
AggregateException,
SemaphoreFullException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void Close(JCORefOut dupParam0, boolean dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void CopyFrom(HttpListenerResponse templateResponse) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException
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,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
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, ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic Version getProtocolVersion() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic java.lang.String getRedirectLocation()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
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,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException,
ObjectDisposedException,
ProtocolViolationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionProtocolViolationExceptionpublic void setContentEncoding(Encoding ContentEncoding) throws java.lang.Throwable
java.lang.Throwablepublic void setContentLength64(long ContentLength64)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException
public void setContentType(java.lang.String ContentType)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
NotSupportedException,
IndexOutOfRangeException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotSupportedExceptionIndexOutOfRangeExceptionpublic void SetCookie(Cookie cookie) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidTimeZoneException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, CookieException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidTimeZoneExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionCookieExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionpublic void setCookies(CookieCollection Cookies) throws java.lang.Throwable
java.lang.Throwablepublic void setHeaders(WebHeaderCollection Headers) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setKeepAlive(boolean KeepAlive)
throws java.lang.Throwable,
ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic void setProtocolVersion(Version ProtocolVersion) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException
public void setRedirectLocation(java.lang.String RedirectLocation)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
NotSupportedException,
IndexOutOfRangeException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotSupportedExceptionIndexOutOfRangeExceptionpublic void setSendChunked(boolean SendChunked)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ProtocolViolationException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionProtocolViolationExceptionpublic void setStatusCode(int StatusCode)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ProtocolViolationException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionProtocolViolationExceptionpublic void setStatusDescription(java.lang.String StatusDescription)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException