Class AbstractConnectorHttpClientTransport

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.AbstractHttpClientTransport
org.eclipse.jetty.client.AbstractConnectorHttpClientTransport
All Implemented Interfaces:
HttpClientTransport, ClientConnectionFactory, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle
Direct Known Subclasses:
HttpClientTransportOverHTTP

@ManagedObject public abstract class AbstractConnectorHttpClientTransport extends AbstractHttpClientTransport
  • Constructor Details

    • AbstractConnectorHttpClientTransport

      protected AbstractConnectorHttpClientTransport(int selectors)
  • Method Details

    • getSelectors

      @ManagedAttribute(value="The number of selectors", readonly=true) public int getSelectors()
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.util.component.ContainerLifeCycle
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.util.component.ContainerLifeCycle
      Throws:
      Exception
    • connect

      public void connect(InetSocketAddress address, Map<String,Object> context)
      Description copied from interface: HttpClientTransport
      Establishes a physical connection to the given address.
      Parameters:
      address - the address to connect to
      context - the context information to establish the connection
    • connectFailed

      protected void connectFailed(Map<String,Object> context, Throwable x)
    • configure

      protected void configure(HttpClient client, SocketChannel channel) throws IOException
      Throws:
      IOException
    • newSelectorManager

      protected SelectorManager newSelectorManager(HttpClient client)
    • getSelectorManager

      protected SelectorManager getSelectorManager()