public class AutoCloseHttpClient extends org.eclipse.jetty.client.HttpClient implements AutoCloseable
HttpClient that supports the AutoCloseable protocol and
which will be transparently closed by the
RemoteRepositoryManager if
RemoteRepositoryManager.close() is invoked.
Note: Do NOT use an instance of this class if you wish to share the same
HttpClient across multiple RemoteRepositoryManager
instances.
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
AutoCloseHttpClient(org.eclipse.jetty.util.ssl.SslContextFactory sslFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doStart() |
protected void |
doStop() |
copyRequest, destinationFor, findProtocolHandler, FORM, FORM, GET, GET, getAcceptEncodingField, getAddressResolutionTimeout, getAuthenticationStore, getBindAddress, getByteBufferPool, getConnectTimeout, getContentDecoderFactories, getCookieStore, getDefaultRequestContentType, getDestination, getDestinations, getExecutor, getHttpCompliance, getIdleTimeout, getMaxConnectionsPerDestination, getMaxRedirects, getMaxRequestsQueuedPerDestination, getName, getProtocolHandlers, getProxyConfiguration, getRequestBufferSize, getRequestListeners, getResponseBufferSize, getScheduler, getSocketAddressResolver, getSslContextFactory, getTransport, getUserAgentField, isConnectBlocking, isDefaultPort, isDispatchIO, isFollowRedirects, isRemoveIdleDestinations, isStrictEventOrdering, isTCPNoDelay, newConnection, newHttpRequest, newRequest, newRequest, newRequest, newSslClientConnectionFactory, normalizeHost, normalizePort, POST, POST, removeDestination, send, setAddressResolutionTimeout, setAuthenticationStore, setBindAddress, setByteBufferPool, setConnectBlocking, setConnectTimeout, setCookieStore, setDefaultRequestContentType, setDispatchIO, setExecutor, setFollowRedirects, setHttpCompliance, setIdleTimeout, setMaxConnectionsPerDestination, setMaxRedirects, setMaxRequestsQueuedPerDestination, setName, setRemoveIdleDestinations, setRequestBufferSize, setResponseBufferSize, setScheduler, setSocketAddressResolver, setStrictEventOrdering, setTCPNoDelay, setUserAgentFieldaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringpublic AutoCloseHttpClient(org.eclipse.jetty.util.ssl.SslContextFactory sslFactory)
protected void doStart()
throws Exception
doStart in class org.eclipse.jetty.client.HttpClientExceptionprotected void doStop()
throws Exception
doStop in class org.eclipse.jetty.client.HttpClientExceptionpublic void close()
throws Exception
Called from RemoteRepositoryManager when it is closed.
close in interface AutoCloseableExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.