|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.url.UrlProvider
org.rhq.enterprise.server.plugins.url.HttpProvider
public class HttpProvider
Similiar to the UrlProvider content source, but this expects the URL to use
the HTTP protocol. This provides the ability to go through an HTTP proxy.
| Constructor Summary | |
|---|---|
HttpProvider()
|
|
| Method Summary | |
|---|---|
protected void |
configureProxy(org.apache.commons.httpclient.HttpClient client)
If proxy information was specified, configures the client to use it. |
protected java.io.InputStream |
getIndexInputStream()
Returns the stream that contains the index file content. |
java.io.InputStream |
getInputStream(java.lang.String location)
|
protected java.io.InputStream |
getInputStreamForUrl(java.net.URL url)
Given any URL, will return a stream to that URL using the HTTP client and GET method for the authentication as defined in this content source's configuration. |
void |
initialize(Configuration configuration)
|
protected void |
prepareHttpClient(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethodBase method)
Given a client and the method to be used by that client, this will prepare those objects so they can be used to get the remote content. |
protected void |
setIndexUrl(java.net.URL url)
|
protected void |
setRootUrl(java.net.URL url)
|
void |
shutdown()
|
void |
testConnection()
|
| Methods inherited from class org.rhq.enterprise.server.plugins.url.UrlProvider |
|---|
createPackage, determinePackageType, findPackage, getIndexUrl, getRemotePackageInfosFromIndex, getRootUrl, getRootUrlString, getSupportedPackageTypes, initializePackageTypes, setSupportedPackageTypes, synchronizePackages, syncPackage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpProvider()
| Method Detail |
|---|
protected void setRootUrl(java.net.URL url)
setRootUrl in class UrlProviderprotected void setIndexUrl(java.net.URL url)
setIndexUrl in class UrlProvider
public void initialize(Configuration configuration)
throws java.lang.Exception
initialize in interface ContentProviderinitialize in class UrlProviderjava.lang.Exceptionpublic void shutdown()
shutdown in interface ContentProvidershutdown in class UrlProvider
public void testConnection()
throws java.lang.Exception
testConnection in interface ContentProvidertestConnection in class UrlProviderjava.lang.Exception
public java.io.InputStream getInputStream(java.lang.String location)
throws java.lang.Exception
getInputStream in interface PackageSourcegetInputStream in class UrlProviderjava.lang.Exception
protected java.io.InputStream getIndexInputStream()
throws java.lang.Exception
UrlProviderindex file content.
getIndexInputStream in class UrlProviderjava.lang.Exception
protected java.io.InputStream getInputStreamForUrl(java.net.URL url)
throws java.lang.Exception
url - the URL whose stream of content is returned
java.lang.Exception - if cannot get the streamed content
protected void prepareHttpClient(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethodBase method)
throws java.lang.Exception
client - method -
java.lang.Exception - if the client cannot be prepared successfullyprotected void configureProxy(org.apache.commons.httpclient.HttpClient client)
client - client being used in the invocation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||