|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.yum.HttpReader
public class HttpReader
The http reader is a yum repo reader used to read metadata and bits from an existing (remote) yum repo using yum's native http interface.
| Constructor Summary | |
|---|---|
HttpReader(java.lang.String baseurl)
Constructor. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
openStream(java.lang.String suffix)
Open an input stream to specifed relative url. |
java.lang.String |
toString()
|
void |
validate()
Validate the reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpReader(java.lang.String baseurl)
basepath - The base url of a yum repo.| Method Detail |
|---|
public void validate()
throws java.lang.Exception
java.lang.Exception - When baseurl is not valid.
public java.io.InputStream openStream(java.lang.String suffix)
throws java.io.IOException
suffix - A url that is relative to the baseurl and references a file within the repo.
java.io.IOException - On all errors.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||