Class Java11HttpClient

java.lang.Object
org.apache.maven.index.Java11HttpClient
All Implemented Interfaces:
org.apache.maven.index.updater.ResourceFetcher

public class Java11HttpClient extends Object implements org.apache.maven.index.updater.ResourceFetcher
ResourceFetcher backed by Java11 HttpClient to be used in tests.
  • Constructor Details

    • Java11HttpClient

      public Java11HttpClient()
  • Method Details

    • connect

      public void connect(String id, String url)
      Specified by:
      connect in interface org.apache.maven.index.updater.ResourceFetcher
    • disconnect

      public void disconnect()
      Specified by:
      disconnect in interface org.apache.maven.index.updater.ResourceFetcher
    • retrieve

      public InputStream retrieve(String name) throws IOException
      Specified by:
      retrieve in interface org.apache.maven.index.updater.ResourceFetcher
      Throws:
      IOException