public class HttpClient extends HttpMessageInvoker
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Http.HttpClient
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=9.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.HttpClient
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
HttpClient() |
HttpClient(HttpMessageHandler handler) |
HttpClient(HttpMessageHandler handler,
boolean disposeHandler) |
HttpClient(java.lang.Object instance)
Internal constructor.
|
close, Disposepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public HttpClient()
throws java.lang.Throwable,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArrayTypeMismatchException,
ArgumentException,
InvalidOperationException,
FormatException,
ArgumentNullException,
ArgumentOutOfRangeException,
EventSourceException,
NotSupportedException,
ObjectDisposedException,
CryptographicException
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionArgumentExceptionInvalidOperationExceptionFormatExceptionArgumentNullExceptionArgumentOutOfRangeExceptionEventSourceExceptionNotSupportedExceptionObjectDisposedExceptionCryptographicExceptionpublic HttpClient(HttpMessageHandler handler) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, EventSourceException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionEventSourceExceptionpublic HttpClient(HttpMessageHandler handler, boolean disposeHandler) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, EventSourceException
public HttpClient(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void CancelPendingRequests()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NullReferenceException,
ArgumentNullException,
AggregateException
public static HttpClient cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into HttpClient, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHttpClient instancejava.lang.Throwable - in case of error during cast operationpublic Uri getBaseAddress() throws java.lang.Throwable
java.lang.Throwablepublic static IWebProxy getDefaultProxy() throws java.lang.Throwable, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, MissingMemberException, InvalidOperationException, ArgumentNullException, NullReferenceException, NotSupportedException, ArgumentException
public HttpRequestHeaders getDefaultRequestHeaders() throws java.lang.Throwable
java.lang.Throwablepublic Version getDefaultRequestVersion() throws java.lang.Throwable
java.lang.Throwablepublic HttpVersionPolicy getDefaultVersionPolicy() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class HttpMessageInvokerString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class HttpMessageInvokerString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class HttpMessageInvokerObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class HttpMessageInvokerString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class HttpMessageInvokerJCType representing the CLR Type of the instantiated Classpublic long getMaxResponseContentBufferSize()
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan getTimeout() throws java.lang.Throwable
java.lang.Throwablepublic HttpResponseMessage Send(HttpRequestMessage request) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockExceptionpublic HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
Send in class HttpMessageInvokerjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockExceptionpublic HttpResponseMessage Send(HttpRequestMessage request, HttpCompletionOption completionOption) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockExceptionpublic HttpResponseMessage Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, OutOfMemoryException, UnreachableException, LockRecursionException, FormatException, TaskSchedulerException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionOutOfMemoryExceptionUnreachableExceptionLockRecursionExceptionFormatExceptionTaskSchedulerExceptionpublic void setBaseAddress(Uri BaseAddress) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, EventSourceException
public static void setDefaultProxy(IWebProxy DefaultProxy) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setDefaultRequestVersion(Version DefaultRequestVersion) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic void setDefaultVersionPolicy(HttpVersionPolicy DefaultVersionPolicy) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class HttpMessageInvokerpublic void setMaxResponseContentBufferSize(long MaxResponseContentBufferSize)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public void setTimeout(TimeSpan Timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException