public class HttpReader extends Object
| Constructor and Description |
|---|
HttpReader(String baseurl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
openStream(String suffix)
Open an input stream to specifed relative url.
|
String |
toString() |
void |
validate()
Validate the reader.
|
public HttpReader(String baseurl)
basepath - The base url of a yum repo.public void validate()
throws Exception
Exception - When baseurl is not valid.public InputStream openStream(String suffix) throws IOException
suffix - A url that is relative to the baseurl and references a file within the repo.IOException - On all errors.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.