Interface HttpTransporterFactory

All Superinterfaces:
TransporterFactory
All Known Implementing Classes:
ApacheTransporterFactory, JdkTransporterFactory, JettyTransporterFactory

A factory for HttpTransporter.
Since:
2.0.0
  • Method Details

    • newInstance

      Tries to create HTTP transporter for the specified remote repository.
      Specified by:
      newInstance in interface TransporterFactory
      Parameters:
      session - The repository system session from which to configure the transporter, must not be null. In particular, a transporter should obey the timeouts configured for the session.
      repository - The remote repository to create a transporter for, must not be null.
      Returns:
      The transporter for the given repository, never null.
      Throws:
      NoTransporterException - If the factory cannot create a transporter for the specified remote repository.