Package system.net.http
Class HttpResponseMessage
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.http.HttpResponseMessage
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class HttpResponseMessage extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Net.Http.HttpResponseMessage, System.Net.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Http.HttpResponseMessage
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.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Net.Httpstatic java.lang.String
className
Qualified class name: System.Net.Http.HttpResponseMessagestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HttpResponseMessage()
HttpResponseMessage(java.lang.Object instance)
Internal constructor.HttpResponseMessage(HttpStatusCode statusCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpResponseMessage
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoHttpResponseMessage
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
HttpResponseMessage
EnsureSuccessStatusCode()
HttpContent
getContent()
HttpResponseHeaders
getHeaders()
boolean
getIsSuccessStatusCode()
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 Typejava.lang.String
getReasonPhrase()
HttpRequestMessage
getRequestMessage()
HttpStatusCode
getStatusCode()
HttpResponseHeaders
getTrailingHeaders()
Version
getVersion()
void
setContent(HttpContent Content)
void
setJCOInstance(JCObject instance)
void
setReasonPhrase(java.lang.String ReasonPhrase)
void
setRequestMessage(HttpRequestMessage RequestMessage)
void
setStatusCode(HttpStatusCode StatusCode)
void
setVersion(Version Version)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.Http- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.Http.HttpResponseMessage- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpResponseMessage
public HttpResponseMessage(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
HttpResponseMessage
public HttpResponseMessage() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
HttpResponseMessage
public HttpResponseMessage(HttpStatusCode statusCode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- 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 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 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 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 interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HttpResponseMessage cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHttpResponseMessage
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HttpResponseMessage
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
EnsureSuccessStatusCode
public HttpResponseMessage EnsureSuccessStatusCode() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, HttpRequestException
-
Dispose
public void Dispose() throws java.lang.Throwable, InvalidOperationException, TaskSchedulerException, ArgumentNullException
- Throws:
java.lang.Throwable
InvalidOperationException
TaskSchedulerException
ArgumentNullException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getIsSuccessStatusCode
public boolean getIsSuccessStatusCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHeaders
public HttpResponseHeaders getHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTrailingHeaders
public HttpResponseHeaders getTrailingHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContent
public HttpContent getContent() throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentException, InvalidOperationException, FormatException, ArgumentNullException, ArgumentOutOfRangeException, EventSourceException, NotSupportedException
-
setContent
public void setContent(HttpContent Content) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, OutOfMemoryException, EventSourceException
-
getRequestMessage
public HttpRequestMessage getRequestMessage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setRequestMessage
public void setRequestMessage(HttpRequestMessage RequestMessage) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, EventSourceException
-
getStatusCode
public HttpStatusCode getStatusCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStatusCode
public void setStatusCode(HttpStatusCode StatusCode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
getReasonPhrase
public java.lang.String getReasonPhrase() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReasonPhrase
public void setReasonPhrase(java.lang.String ReasonPhrase) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
getVersion
public Version getVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setVersion
public void setVersion(Version Version) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-