Class HttpClient
public class HttpClient : JVMBridgeBase<HttpClient>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<HttpClient>HttpClient
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<HttpClient>.SExecuteWithSignature<TReturn>(IJavaType, string, string, params object[])JVMBridgeBase<HttpClient>.SExecuteWithSignature<TNewClass, TReturn>(string, string, params object[])JVMBridgeBase<HttpClient>.IsAssignableFrom(IJavaType)JVMBridgeBase<HttpClient>.IsAssignableFrom<T>()JVMBridgeBase<HttpClient>.Execute<T>(params T[])JVMBridgeBase<HttpClient>.DynBridgeClazzJVMBridgeBase<HttpClient>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
HttpClient()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("HttpClient class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpClient()
HttpClient(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("HttpClient class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpClient(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Authenticator()
public Optional<Authenticator> Authenticator()
Returns
ConnectTimeout()
public Optional<Duration> ConnectTimeout()
Returns
CookieHandler()
public Optional<CookieHandler> CookieHandler()
Returns
Executor()
public Optional<Executor> Executor()
Returns
FollowRedirects()
public HttpClient.Redirect FollowRedirects()
Returns
NewBuilder()
public static HttpClient.Builder NewBuilder()
Returns
NewHttpClient()
public static HttpClient NewHttpClient()
Returns
NewWebSocketBuilder()
public WebSocket.Builder NewWebSocketBuilder()
Returns
Proxy()
public Optional<ProxySelector> Proxy()
Returns
SendAsync<T>(HttpRequest, BodyHandler<T>)
public CompletableFuture<HttpResponse<T>> SendAsync<T>(HttpRequest arg0, HttpResponse.BodyHandler<T> arg1)
Parameters
Returns
Type Parameters
T
SendAsync<T>(HttpRequest, BodyHandler<T>, PushPromiseHandler<T>)
public CompletableFuture<HttpResponse<T>> SendAsync<T>(HttpRequest arg0, HttpResponse.BodyHandler<T> arg1, HttpResponse.PushPromiseHandler<T> arg2)
Parameters
arg0
HttpRequestarg1
HttpResponse.BodyHandler<T>arg2
HttpResponse.PushPromiseHandler<T>
Returns
Type Parameters
T
Send<T>(HttpRequest, BodyHandler<T>)
public HttpResponse<T> Send<T>(HttpRequest arg0, HttpResponse.BodyHandler<T> arg1)
Parameters
Returns
Type Parameters
T
Exceptions
SslContext()
public SSLContext SslContext()
Returns
SslParameters()
public SSLParameters SslParameters()
Returns
VersionMethod()
public HttpClient.Version VersionMethod()