public class HttpResourceHandler extends Object implements org.apache.maven.index.reader.ResourceHandler
ResourceHandler
that uses URL
to fetch remote content. This implementation does not
handle any advanced cases, like redirects, authentication, etc.Constructor and Description |
---|
HttpResourceHandler(URL root) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.maven.index.reader.ResourceHandler.Resource |
locate(String name) |
public HttpResourceHandler(URL root) throws URISyntaxException
URISyntaxException
public org.apache.maven.index.reader.ResourceHandler.Resource locate(String name) throws IOException
locate
in interface org.apache.maven.index.reader.ResourceHandler
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.