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.String
assemblyFullName
Fully assembly qualified name: System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Net.Httpstatic java.lang.String
className
Qualified class name: System.Net.Http.HttpClientstatic JCType
classType
The 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 void
CancelPendingRequests()
static HttpClient
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoHttpClient
, a cast assert is made to check if types are compatible.Uri
getBaseAddress()
HttpRequestHeaders
getDefaultRequestHeaders()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typelong
getMaxResponseContentBufferSize()
TimeSpan
getTimeout()
void
setBaseAddress(Uri BaseAddress)
void
setJCOInstance(JCObject instance)
void
setMaxResponseContentBufferSize(long MaxResponseContentBufferSize)
void
setTimeout(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.Throwable
Internal 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.Throwable
IndexOutOfRangeException
ArgumentNullException
FormatException
EventSourceException
ArgumentOutOfRangeException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
SecurityException
CultureNotFoundException
NotSupportedException
HttpRequestException
WaitHandleCannotBeOpenedException
ConfigurationErrorsException
ConfigurationException
-
HttpClient
public HttpClient(HttpMessageHandler handler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
EventSourceException
-
HttpClient
public HttpClient(HttpMessageHandler handler, boolean disposeHandler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
EventSourceException
OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classHttpMessageInvoker
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classHttpMessageInvoker
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classHttpMessageInvoker
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classHttpMessageInvoker
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classHttpMessageInvoker
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classHttpMessageInvoker
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HttpClient cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHttpClient
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HttpClient
instance- 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.Throwable
ObjectDisposedException
IndexOutOfRangeException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
EventSourceException
OutOfMemoryException
ArgumentException
InvalidOperationException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AggregateException
AbandonedMutexException
-
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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
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
-
-