Class HttpResourceHandler

java.lang.Object
org.apache.maven.index.reader.HttpResourceHandler
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.maven.index.reader.ResourceHandler

public class HttpResourceHandler extends Object implements org.apache.maven.index.reader.ResourceHandler
A trivial HTTP ResourceHandler that uses URI to fetch remote content. This implementation does not handle any advanced cases, like redirects, authentication, etc.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.maven.index.reader.ResourceHandler

    org.apache.maven.index.reader.ResourceHandler.Resource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.index.reader.ResourceHandler.Resource
    locate(String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.maven.index.reader.ResourceHandler

    close
  • Constructor Details

    • HttpResourceHandler

      public HttpResourceHandler(URI root)
  • Method Details

    • locate

      public org.apache.maven.index.reader.ResourceHandler.Resource locate(String name)
      Specified by:
      locate in interface org.apache.maven.index.reader.ResourceHandler