Class HttpConnectionFactory

All Implemented Interfaces:
ConnectionFactory, HttpConfiguration.ConnectionFactory, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

public class HttpConnectionFactory extends AbstractConnectionFactory implements HttpConfiguration.ConnectionFactory
A Connection Factory for HTTP Connections.

Accepts connections either directly or via SSL and/or ALPN chained connection factories. The accepted HttpConnections are configured by a HttpConfiguration instance that is either created by default or passed in to the constructor.

  • Constructor Details

    • HttpConnectionFactory

      public HttpConnectionFactory()
    • HttpConnectionFactory

      public HttpConnectionFactory(@Name("config") HttpConfiguration config)
  • Method Details

    • getHttpConfiguration

      public HttpConfiguration getHttpConfiguration()
      Specified by:
      getHttpConfiguration in interface HttpConfiguration.ConnectionFactory
    • isRecordHttpComplianceViolations

      public boolean isRecordHttpComplianceViolations()
    • setRecordHttpComplianceViolations

      public void setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations)
    • isUseInputDirectByteBuffers

      public boolean isUseInputDirectByteBuffers()
    • setUseInputDirectByteBuffers

      public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
    • isUseOutputDirectByteBuffers

      public boolean isUseOutputDirectByteBuffers()
    • setUseOutputDirectByteBuffers

      public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)
    • newConnection

      public Connection newConnection(Connector connector, EndPoint endPoint)
      Description copied from interface: ConnectionFactory

      Creates a new Connection with the given parameters

      Specified by:
      newConnection in interface ConnectionFactory
      Parameters:
      connector - The Connector creating this connection
      endPoint - the EndPoint associated with the connection
      Returns:
      a new Connection