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.StringassemblyFullNameFully assembly qualified name: System.Net.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Net.Httpstatic java.lang.StringclassNameQualified class name: System.Net.Http.HttpResponseMessagestatic JCTypeclassTypeThe 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 HttpResponseMessagecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoHttpResponseMessage, a cast assert is made to check if types are compatible.voidclose()voidDispose()HttpResponseMessageEnsureSuccessStatusCode()HttpContentgetContent()HttpResponseHeadersgetHeaders()booleangetIsSuccessStatusCode()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 Typejava.lang.StringgetReasonPhrase()HttpRequestMessagegetRequestMessage()HttpStatusCodegetStatusCode()HttpResponseHeadersgetTrailingHeaders()VersiongetVersion()voidsetContent(HttpContent Content)voidsetJCOInstance(JCObject instance)voidsetReasonPhrase(java.lang.String ReasonPhrase)voidsetRequestMessage(HttpRequestMessage RequestMessage)voidsetStatusCode(HttpStatusCode StatusCode)voidsetVersion(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.ThrowableInternal 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:IJCOBridgeReflectedReturns the reflected Assembly name- 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 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 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 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 interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static HttpResponseMessage cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHttpResponseMessage, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
HttpResponseMessageinstance- 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.ThrowableInvalidOperationExceptionTaskSchedulerExceptionArgumentNullException
-
close
public void close() throws java.lang.Exception- Specified by:
closein 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
-
-