Package system.net.http
Class HttpClient
- java.lang.Object
 - 
- org.mases.jcobridge.netreflection.NetObject
 - 
- system.net.http.HttpMessageInvoker
 - 
- system.net.http.HttpClient
 
 
 
 
- 
- All Implemented Interfaces:
 java.lang.AutoCloseable,IJCOBridgeReflected
public class HttpClient extends HttpMessageInvoker
The base .NET class managing System.Net.Http.HttpClient, 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.HttpClient
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.HttpClientstatic JCTypeclassTypeThe type managed from JCOBridge. 
- 
Constructor Summary
Constructors Constructor Description HttpClient()HttpClient(java.lang.Object instance)Internal constructor.HttpClient(HttpMessageHandler handler)HttpClient(HttpMessageHandler handler, boolean disposeHandler) 
- 
Method Summary
- 
Methods inherited from class system.net.http.HttpMessageInvoker
close, Dispose 
 - 
 
 - 
 
- 
- 
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.HttpClient- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
HttpClient
public HttpClient(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
 java.lang.Throwable
 
- 
HttpClient
public HttpClient() throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentException, InvalidOperationException, FormatException, ArgumentNullException, ArgumentOutOfRangeException, EventSourceException, NotSupportedException, ObjectDisposedException, CryptographicException- Throws:
 java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionArgumentExceptionInvalidOperationExceptionFormatExceptionArgumentNullExceptionArgumentOutOfRangeExceptionEventSourceExceptionNotSupportedExceptionObjectDisposedExceptionCryptographicException
 
- 
HttpClient
public HttpClient(HttpMessageHandler handler, boolean disposeHandler) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, EventSourceException
 
- 
HttpClient
public HttpClient(HttpMessageHandler handler) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, EventSourceException
- Throws:
 java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionEventSourceException
 
 - 
 
- 
Method Detail
- 
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
 getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
 getJCOAssemblyNamein classHttpMessageInvoker- 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 classHttpMessageInvoker- 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 classHttpMessageInvoker- 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 classHttpMessageInvoker- Returns:
 - An 
Objectrepresenting the CLR instance of the instantiated Class 
 
- 
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
 setJCOInstancein classHttpMessageInvoker
 
- 
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
 getJCOTypein interfaceIJCOBridgeReflected- Overrides:
 getJCOTypein classHttpMessageInvoker- Returns:
 - A 
JCTyperepresenting the CLR Type of the instantiated Class 
 
- 
cast
public static HttpClient cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHttpClient, a cast assert is made to check if types are compatible.- Parameters:
 from-IJCOBridgeReflectedinstance to be casted- Returns:
 HttpClientinstance- Throws:
 java.lang.Throwable- in case of error during cast operation
 
- 
Send
public 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
- Throws:
 java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionOutOfMemoryExceptionUnreachableExceptionLockRecursionExceptionFormatExceptionTaskSchedulerException
 
- 
Send
public HttpResponseMessage Send(HttpRequestMessage request, HttpCompletionOption completionOption) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
- Throws:
 java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockException
 
- 
Send
public HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
- Overrides:
 Sendin classHttpMessageInvoker- Throws:
 java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockException
 
- 
Send
public HttpResponseMessage Send(HttpRequestMessage request) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, UriFormatException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, SynchronizationLockException
- Throws:
 java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUriFormatExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionSynchronizationLockException
 
- 
CancelPendingRequests
public void CancelPendingRequests() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, ArgumentNullException, AggregateException 
- 
getMaxResponseContentBufferSize
public long getMaxResponseContentBufferSize() throws java.lang.Throwable- Throws:
 java.lang.Throwable
 
- 
setMaxResponseContentBufferSize
public void setMaxResponseContentBufferSize(long MaxResponseContentBufferSize) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException 
- 
getDefaultRequestHeaders
public HttpRequestHeaders getDefaultRequestHeaders() throws java.lang.Throwable
- Throws:
 java.lang.Throwable
 
- 
getDefaultVersionPolicy
public HttpVersionPolicy getDefaultVersionPolicy() throws java.lang.Throwable
- Throws:
 java.lang.Throwable
 
- 
setDefaultVersionPolicy
public void setDefaultVersionPolicy(HttpVersionPolicy DefaultVersionPolicy) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
 java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
 
- 
getDefaultProxy
public static IWebProxy getDefaultProxy() throws java.lang.Throwable, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, MissingMemberException, InvalidOperationException, ArgumentNullException, NullReferenceException, NotSupportedException, ArgumentException
 
- 
setDefaultProxy
public static void setDefaultProxy(IWebProxy DefaultProxy) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
 
- 
getTimeout
public TimeSpan getTimeout() throws java.lang.Throwable
- Throws:
 java.lang.Throwable
 
- 
setTimeout
public void setTimeout(TimeSpan Timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
 
- 
getBaseAddress
public Uri getBaseAddress() throws java.lang.Throwable
- Throws:
 java.lang.Throwable
 
- 
setBaseAddress
public void setBaseAddress(Uri BaseAddress) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, EventSourceException
 
- 
getDefaultRequestVersion
public Version getDefaultRequestVersion() throws java.lang.Throwable
- Throws:
 java.lang.Throwable
 
- 
setDefaultRequestVersion
public void setDefaultRequestVersion(Version DefaultRequestVersion) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
 java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
 
 - 
 
 -