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=4.2.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=4.2.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidCancelPendingRequests()static HttpClientcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoHttpClient, a cast assert is made to check if types are compatible.UrigetBaseAddress()HttpRequestHeadersgetDefaultRequestHeaders()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 TypelonggetMaxResponseContentBufferSize()TimeSpangetTimeout()voidsetBaseAddress(Uri BaseAddress)voidsetJCOInstance(JCObject instance)voidsetMaxResponseContentBufferSize(long MaxResponseContentBufferSize)voidsetTimeout(TimeSpan Timeout)-
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=4.2.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, IndexOutOfRangeException, ArgumentNullException, FormatException, EventSourceException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, SecurityException, CultureNotFoundException, NotSupportedException, HttpRequestException, WaitHandleCannotBeOpenedException, ConfigurationErrorsException, ConfigurationException- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionEventSourceExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionSecurityExceptionCultureNotFoundExceptionNotSupportedExceptionHttpRequestExceptionWaitHandleCannotBeOpenedExceptionConfigurationErrorsExceptionConfigurationException
-
HttpClient
public HttpClient(HttpMessageHandler handler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceException
-
HttpClient
public HttpClient(HttpMessageHandler handler, boolean disposeHandler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionOutOfMemoryException
-
-
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
-
CancelPendingRequests
public void CancelPendingRequests() throws java.lang.Throwable, ObjectDisposedException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException, ArgumentException, InvalidOperationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AggregateException, AbandonedMutexException- Throws:
java.lang.ThrowableObjectDisposedExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionArgumentExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAggregateExceptionAbandonedMutexException
-
getMaxResponseContentBufferSize
public long getMaxResponseContentBufferSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMaxResponseContentBufferSize
public void setMaxResponseContentBufferSize(long MaxResponseContentBufferSize) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatException
-
getDefaultRequestHeaders
public HttpRequestHeaders getDefaultRequestHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTimeout
public TimeSpan getTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTimeout
public void setTimeout(TimeSpan Timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException
-
getBaseAddress
public Uri getBaseAddress() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBaseAddress
public void setBaseAddress(Uri BaseAddress) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
-