@ExperimentalApi
public final class OcJettyHttpClient
extends org.eclipse.jetty.client.HttpClient
HttpClient. It enables tracing for all Request created
using this client.org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
OcJettyHttpClient()
Create a new
OcJettyHttpClient. |
OcJettyHttpClient(org.eclipse.jetty.client.HttpClientTransport transport,
org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
io.opencensus.contrib.http.HttpExtractor<org.eclipse.jetty.client.api.Request,org.eclipse.jetty.client.api.Response> extractor,
io.opencensus.trace.propagation.TextFormat propagator)
Create a new
OcJettyHttpClient with support for HTTPS, extractor and propagator. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jetty.client.api.Request |
newRequest(URI uri)
Returns a new request created from a given
URI. |
copyRequest, destinationFor, doStart, doStop, dump, findProtocolHandler, FORM, FORM, GET, GET, getAcceptEncodingField, getAddressResolutionTimeout, getAuthenticationStore, getBindAddress, getByteBufferPool, getConnectTimeout, getContentDecoderFactories, getCookieStore, getDestination, getDestinations, getExecutor, getIdleTimeout, getMaxConnectionsPerDestination, getMaxRedirects, getMaxRequestsQueuedPerDestination, getProtocolHandlers, getProxyConfiguration, getRequestBufferSize, getRequestListeners, getResponseBufferSize, getScheduler, getSocketAddressResolver, getSslContextFactory, getTransport, getUserAgentField, isConnectBlocking, isDefaultPort, isDispatchIO, isFollowRedirects, isRemoveIdleDestinations, isStrictEventOrdering, isTCPNoDelay, newConnection, newHttpRequest, newRequest, newRequest, normalizeHost, normalizePort, POST, POST, removeDestination, send, setAddressResolutionTimeout, setBindAddress, setByteBufferPool, setConnectBlocking, setConnectTimeout, setCookieStore, setDispatchIO, setExecutor, setFollowRedirects, setIdleTimeout, setMaxConnectionsPerDestination, setMaxRedirects, setMaxRequestsQueuedPerDestination, setRemoveIdleDestinations, setRequestBufferSize, setResponseBufferSize, setScheduler, setSocketAddressResolver, setStrictEventOrdering, setTCPNoDelay, setUserAgentFieldaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeanspublic OcJettyHttpClient()
OcJettyHttpClient.public OcJettyHttpClient(org.eclipse.jetty.client.HttpClientTransport transport,
org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
@Nullable
io.opencensus.contrib.http.HttpExtractor<org.eclipse.jetty.client.api.Request,org.eclipse.jetty.client.api.Response> extractor,
@Nullable
io.opencensus.trace.propagation.TextFormat propagator)
OcJettyHttpClient with support for HTTPS, extractor and propagator.transport - HttpClientTransport The transport implementation.sslContextFactory - SslContextFactory Used to configure SSL connectors.extractor - HttpExtractor to extract request and response specific attributes. If
it is null then default extractor is used.propagator - TextFormat to propagate trace context to remote peer. If it is null
then default propagator (TraceContextFormat) is used.