Class HttpClient
java.lang.Object
com.predic8.membrane.core.transport.http.HttpClient
- All Implemented Interfaces:
AutoCloseable
HttpClient with possibly multiple selectable destinations, with internal logic to auto-retry and to
switch destinations on failures.
Instances are thread-safe.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpClient(HttpClientConfiguration configuration) HttpClient(HttpClientConfiguration configuration, TimerManager timerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()voidsetStreamPumpStats(StreamPump.StreamPumpStats streamPumpStats) static voidsetupConnectionForwarding(Exchange exc, Connection con, String protocol, StreamPump.StreamPumpStats streamPumpStats)
-
Field Details
-
HTTP2
- See Also:
-
-
Constructor Details
-
HttpClient
public HttpClient() -
HttpClient
-
HttpClient
public HttpClient(@Nullable HttpClientConfiguration configuration, @Nullable TimerManager timerManager)
-
-
Method Details
-
setStreamPumpStats
-
finalize
-
call
- Throws:
Exception
-
call
public Exchange call(Exchange exc, boolean adjustHostHeader, boolean failOverOn5XX) throws Exception - Throws:
Exception
-
setupConnectionForwarding
public static void setupConnectionForwarding(Exchange exc, Connection con, String protocol, StreamPump.StreamPumpStats streamPumpStats) throws SocketException - Throws:
SocketException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-