Table of Contents

Class HttpClient

Namespace
Java.Net.Http
Assembly
MASES.JNet.dll
public class HttpClient : JVMBridgeBase<HttpClient>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<HttpClient>
HttpClient
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<HttpClient>.IsAssignableFrom(IJavaType)
JVMBridgeBase<HttpClient>.IsAssignableFrom<T>()
JVMBridgeBase<HttpClient>.Execute<T>(params T[])
JVMBridgeBase<HttpClient>.DynBridgeClazz
JVMBridgeBase<HttpClient>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Authenticator()

public Optional<Authenticator> Authenticator()

Returns

Optional<Authenticator>

Optional

ConnectTimeout()

public Optional<Duration> ConnectTimeout()

Returns

Optional<Duration>

Optional

CookieHandler()

public Optional<CookieHandler> CookieHandler()

Returns

Optional<CookieHandler>

Optional

Executor()

public Optional<Executor> Executor()

Returns

Optional<Executor>

Optional

FollowRedirects()

public HttpClient.Redirect FollowRedirects()

Returns

HttpClient.Redirect

HttpClient.Redirect

NewBuilder()

public static HttpClient.Builder NewBuilder()

Returns

HttpClient.Builder

HttpClient.Builder

NewHttpClient()

public static HttpClient NewHttpClient()

Returns

HttpClient

HttpClient

NewWebSocketBuilder()

public WebSocket.Builder NewWebSocketBuilder()

Returns

WebSocket.Builder

WebSocket.Builder

Proxy()

public Optional<ProxySelector> Proxy()

Returns

Optional<ProxySelector>

Optional

SendAsync<T>(HttpRequest, BodyHandler<T>)

public CompletableFuture<HttpResponse<T>> SendAsync<T>(HttpRequest arg0, HttpResponse.BodyHandler<T> arg1)

Parameters

arg0 HttpRequest

HttpRequest

arg1 HttpResponse.BodyHandler<T>

HttpResponse.BodyHandler

Returns

CompletableFuture<HttpResponse<T>>

CompletableFuture

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 HttpRequest

HttpRequest

arg1 HttpResponse.BodyHandler<T>

HttpResponse.BodyHandler

arg2 HttpResponse.PushPromiseHandler<T>

HttpResponse.PushPromiseHandler

Returns

CompletableFuture<HttpResponse<T>>

CompletableFuture

Type Parameters

T

Send<T>(HttpRequest, BodyHandler<T>)

public HttpResponse<T> Send<T>(HttpRequest arg0, HttpResponse.BodyHandler<T> arg1)

Parameters

arg0 HttpRequest

HttpRequest

arg1 HttpResponse.BodyHandler<T>

HttpResponse.BodyHandler

Returns

HttpResponse<T>

HttpResponse

Type Parameters

T

Exceptions

IOException
InterruptedException

SslContext()

public SSLContext SslContext()

Returns

SSLContext

SSLContext

SslParameters()

public SSLParameters SslParameters()

Returns

SSLParameters

SSLParameters

VersionMethod()

public HttpClient.Version VersionMethod()

Returns

HttpClient.Version

HttpClient.Version