Top Fields Constructors Methods
org.eclipse.jetty.client

public abstract Class AbstractHttpClientTransport

extends ContainerLifeCycle
implements HttpClientTransport
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.client.HttpClientTransport, org.eclipse.jetty.io.ClientConnectionFactory
Known Direct Subclasses
org.eclipse.jetty.client.AbstractConnectorHttpClientTransport
Annotations
@ManagedObject
Imports
java.util.Map, org.eclipse.jetty.util.Promise, org.eclipse.jetty.util.annotation.ManagedObject, org.eclipse.jetty.util.component.ContainerLifeCycle, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private HttpClient
private ConnectionPool.Factory
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
connectFailed(Map<String, Object> context, Throwable failure)

public ConnectionPool.Factory
protected HttpClient
public void
setConnectionPoolFactory(ConnectionPool.Factory
the factory for ConnectionPool instances
factory
)

Implements org.eclipse.jetty.client.HttpClientTransport.setConnectionPoolFactory.

Set the factory for ConnectionPool instances.

public void
setHttpClient(HttpClient
the HttpClient that uses this transport.
client
)

Implements org.eclipse.jetty.client.HttpClientTransport.setHttpClient.

Sets the HttpClient instance on this transport.

Inherited from org.eclipse.jetty.util.component.ContainerLifeCycle:
addBeanaddBeanaddEventListeneraddManagedcontainsdestroydoStartdoStopdumpdumpdumpdumpObjectsdumpStdErrgetBeangetBeansgetBeansgetContainedBeansgetContainedBeansisAutoisManagedisUnmanagedmanageremoveBeanremoveBeansremoveEventListenersetBeansstartstopunmanageupdateBeanupdateBeanupdateBeansupdateBeans

Field Detail

clientback to summary
private HttpClient client
factoryback to summary
private ConnectionPool.Factory factory
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.util.component.ContainerLifeCycle.LOG.

Constructor Detail

AbstractHttpClientTransportback to summary
public AbstractHttpClientTransport()

Method Detail

connectFailedback to summary
protected void connectFailed(Map<String, Object> context, Throwable failure)
getConnectionPoolFactoryback to summary
public ConnectionPool.Factory getConnectionPoolFactory()

Implements org.eclipse.jetty.client.HttpClientTransport.getConnectionPoolFactory.

Returns:ConnectionPool.Factory

Doc from org.eclipse.jetty.client.HttpClientTransport.getConnectionPoolFactory.

the factory for ConnectionPool instances

Annotations
@Override
getHttpClientback to summary
protected HttpClient getHttpClient()
setConnectionPoolFactoryback to summary
public void setConnectionPoolFactory(ConnectionPool.Factory factory)

Implements org.eclipse.jetty.client.HttpClientTransport.setConnectionPoolFactory.

Doc from org.eclipse.jetty.client.HttpClientTransport.setConnectionPoolFactory.

Set the factory for ConnectionPool instances.

Parameters
factory:ConnectionPool.Factory

the factory for ConnectionPool instances

Annotations
@Override
setHttpClientback to summary
public void setHttpClient(HttpClient client)

Implements org.eclipse.jetty.client.HttpClientTransport.setHttpClient.

Doc from org.eclipse.jetty.client.HttpClientTransport.setHttpClient.

Sets the HttpClient instance on this transport.

This is needed because of a chicken-egg problem: in order to create the HttpClient a HttpClientTransport is needed, that therefore cannot have a reference yet to the HttpClient.

Parameters
client:HttpClient

the HttpClient that uses this transport.

Annotations
@Override