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.String
assemblyFullName
Fully assembly qualified name: System.Net.HttpListener, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Net.HttpListenerstatic java.lang.String
className
Qualified class name: System.Net.HttpListenerResponsestatic JCType
classType
The 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 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 theIJCOBridgeReflected
instance intoHttpListenerResponse
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeboolean
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)
-
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: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 HttpListenerResponse cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHttpListenerResponse
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HttpListenerResponse
instance- 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.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
OutOfMemoryException
FormatException
ArgumentNullException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
OutOfMemoryException
FormatException
ArgumentNullException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
OutOfMemoryException
FormatException
EventSourceException
IndexOutOfRangeException
ObjectDisposedException
ProtocolViolationException
-
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:
close
in 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
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.Throwable
NotSupportedException
ArgumentException
ObjectDisposedException
InvalidOperationException
ProtocolViolationException
-
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.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
NotSupportedException
PlatformNotSupportedException
ArrayTypeMismatchException
OutOfMemoryException
CultureNotFoundException
InvalidOperationException
ObjectDisposedException
IndexOutOfRangeException
RankException
InvalidCastException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
-