public class HttpContent extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Http.HttpContent
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.Http, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Http
|
static java.lang.String |
className
Qualified class name: System.Net.Http.HttpContent
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
HttpContent() |
HttpContent(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpContent |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into HttpContent, a cast assert is made to check if types are compatible. |
void |
close() |
void |
CopyTo(Stream stream,
TransportContext context,
CancellationToken cancellationToken)
Invokes the .NET member CopyTo.
|
Task |
CopyToAsync(Stream stream)
Invokes the .NET member CopyToAsync.
|
Task |
CopyToAsync(Stream stream,
CancellationToken cancellationToken)
Invokes the .NET member CopyToAsync.
|
Task |
CopyToAsync(Stream stream,
TransportContext context)
Invokes the .NET member CopyToAsync.
|
Task |
CopyToAsync(Stream stream,
TransportContext context,
CancellationToken cancellationToken)
Invokes the .NET member CopyToAsync.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
HttpContentHeaders |
getHeaders()
Gets the value of the .NET property Headers.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
Task |
LoadIntoBufferAsync()
Invokes the .NET member LoadIntoBufferAsync.
|
Task |
LoadIntoBufferAsync(long maxBufferSize)
Invokes the .NET member LoadIntoBufferAsync.
|
Task_1 |
ReadAsByteArrayAsync()
Invokes the .NET member ReadAsByteArrayAsync.
|
Task_1 |
ReadAsByteArrayAsync(CancellationToken cancellationToken)
Invokes the .NET member ReadAsByteArrayAsync.
|
Stream |
ReadAsStream()
Invokes the .NET member ReadAsStream.
|
Stream |
ReadAsStream(CancellationToken cancellationToken)
Invokes the .NET member ReadAsStream.
|
Task_1 |
ReadAsStreamAsync()
Invokes the .NET member ReadAsStreamAsync.
|
Task_1 |
ReadAsStreamAsync(CancellationToken cancellationToken)
Invokes the .NET member ReadAsStreamAsync.
|
Task_1 |
ReadAsStringAsync()
Invokes the .NET member ReadAsStringAsync.
|
Task_1 |
ReadAsStringAsync(CancellationToken cancellationToken)
Invokes the .NET member ReadAsStringAsync.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public HttpContent()
throws java.lang.Throwable
java.lang.Throwablepublic HttpContent(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static HttpContent cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into HttpContent, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHttpContent 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 CopyTo(Stream stream, TransportContext context, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
stream - the argument of type Streamcontext - the argument of type TransportContextcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task CopyToAsync(Stream stream) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, InvalidOperationException, ArrayTypeMismatchException, OutOfMemoryException, FormatException
stream - the argument of type Streamjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task CopyToAsync(Stream stream, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, TaskSchedulerException, InvalidOperationException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, EventSourceException
stream - the argument of type StreamcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic Task CopyToAsync(Stream stream, TransportContext context) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, TaskSchedulerException, InvalidOperationException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, EventSourceException
stream - the argument of type Streamcontext - the argument of type TransportContextjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic Task CopyToAsync(Stream stream, TransportContext context, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, OperationCanceledException, SemaphoreFullException, TaskSchedulerException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
stream - the argument of type Streamcontext - the argument of type TransportContextcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOperationCanceledException - if the .NET member raises itSemaphoreFullException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable,
PlatformNotSupportedException,
EventSourceException,
InvalidOperationException,
TaskSchedulerException,
ObjectDisposedException,
OperationCanceledException,
ArgumentOutOfRangeException,
ArgumentException,
IndexOutOfRangeException,
NotSupportedException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itEventSourceException - if the .NET member raises itInvalidOperationException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOperationCanceledException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic HttpContentHeaders getHeaders() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic Task LoadIntoBufferAsync() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task LoadIntoBufferAsync(long maxBufferSize) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException
maxBufferSize - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic Task_1 ReadAsByteArrayAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task_1 ReadAsByteArrayAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Stream ReadAsStream() throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, AggregateException, OutOfMemoryException, EventSourceException, HttpRequestException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itAggregateException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itHttpRequestException - if the .NET member raises itpublic Stream ReadAsStream(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, HttpRequestException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itHttpRequestException - if the .NET member raises itpublic Task_1 ReadAsStreamAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic Task_1 ReadAsStreamAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Task_1 ReadAsStringAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, ArrayTypeMismatchException, CultureNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic Task_1 ReadAsStringAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object