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=4.2.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CancelPendingRequests() |
static HttpClient |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into HttpClient, a cast assert is made to check if types are compatible. |
Uri |
getBaseAddress() |
HttpRequestHeaders |
getDefaultRequestHeaders() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
long |
getMaxResponseContentBufferSize() |
TimeSpan |
getTimeout() |
void |
setBaseAddress(Uri BaseAddress) |
void |
setJCOInstance(JCObject instance) |
void |
setMaxResponseContentBufferSize(long MaxResponseContentBufferSize) |
void |
setTimeout(TimeSpan Timeout) |
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,
IndexOutOfRangeException,
ArgumentNullException,
FormatException,
EventSourceException,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
SecurityException,
CultureNotFoundException,
NotSupportedException,
HttpRequestException,
WaitHandleCannotBeOpenedException,
ConfigurationErrorsException,
ConfigurationException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionEventSourceExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionSecurityExceptionCultureNotFoundExceptionNotSupportedExceptionHttpRequestExceptionWaitHandleCannotBeOpenedExceptionConfigurationErrorsExceptionConfigurationExceptionpublic HttpClient(HttpMessageHandler handler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionpublic HttpClient(HttpMessageHandler handler, boolean disposeHandler) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionpublic HttpClient(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic 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
java.lang.ThrowableObjectDisposedExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionArgumentExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAggregateExceptionAbandonedMutexExceptionpublic 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 HttpRequestHeaders getDefaultRequestHeaders() 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 void setBaseAddress(Uri BaseAddress) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
public void setJCOInstance(JCObject instance)
setJCOInstance in class HttpMessageInvokerpublic void setMaxResponseContentBufferSize(long MaxResponseContentBufferSize)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionpublic void setTimeout(TimeSpan Timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException