fedora.common
Class HttpClient
java.lang.Object
fedora.common.HttpClient
- public class HttpClient
- extends java.lang.Object
|
Constructor Summary |
HttpClient(java.lang.String url)
|
HttpClient(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String path)
|
|
Method Summary |
org.apache.commons.httpclient.methods.GetMethod |
doAuthnGet(int millisecondsWait,
int redirectDepth,
java.lang.String username,
java.lang.String password,
int maxConnectionAttemptsPerUrl)
|
org.apache.commons.httpclient.methods.GetMethod |
doAuthnGet(int millisecondsWait,
int redirectDepth,
java.lang.String username,
java.lang.String password,
int maxConnectionAttemptsPerUrl,
int millisecondsSleep)
|
org.apache.commons.httpclient.methods.GetMethod |
doNoAuthnGet(int millisecondsWait,
int redirectDepth,
int maxConnectionAttemptsPerUrl)
|
org.apache.commons.httpclient.methods.GetMethod |
doNoAuthnGet(int millisecondsWait,
int redirectDepth,
int maxConnectionAttemptsPerUrl,
int millisecondsSleep)
|
int |
getContentLength()
|
org.apache.commons.httpclient.methods.GetMethod |
getGetMethod()
|
java.lang.String |
getHost()
|
java.lang.String |
getLineResponseUrl()
|
java.lang.String |
getPort()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getRelativeUrl()
|
int |
getStatusCode()
|
java.io.InputStream |
getStreamResponse()
|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
makeUrl(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String more)
|
static void |
thisUseFinished()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClient
public HttpClient(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String path)
HttpClient
public HttpClient(java.lang.String url)
doNoAuthnGet
public org.apache.commons.httpclient.methods.GetMethod doNoAuthnGet(int millisecondsWait,
int redirectDepth,
int maxConnectionAttemptsPerUrl)
throws java.lang.Exception
- Throws:
java.lang.Exception
doNoAuthnGet
public org.apache.commons.httpclient.methods.GetMethod doNoAuthnGet(int millisecondsWait,
int redirectDepth,
int maxConnectionAttemptsPerUrl,
int millisecondsSleep)
throws java.lang.Exception
- Throws:
java.lang.Exception
doAuthnGet
public org.apache.commons.httpclient.methods.GetMethod doAuthnGet(int millisecondsWait,
int redirectDepth,
java.lang.String username,
java.lang.String password,
int maxConnectionAttemptsPerUrl)
throws java.lang.Exception
- Throws:
java.lang.Exception
thisUseFinished
public static void thisUseFinished()
doAuthnGet
public org.apache.commons.httpclient.methods.GetMethod doAuthnGet(int millisecondsWait,
int redirectDepth,
java.lang.String username,
java.lang.String password,
int maxConnectionAttemptsPerUrl,
int millisecondsSleep)
throws java.lang.Exception
- Throws:
java.lang.Exception
getProtocol
public final java.lang.String getProtocol()
getHost
public final java.lang.String getHost()
getPort
public final java.lang.String getPort()
getRelativeUrl
public java.lang.String getRelativeUrl()
getGetMethod
public org.apache.commons.httpclient.methods.GetMethod getGetMethod()
getStatusCode
public int getStatusCode()
makeUrl
public static java.lang.String makeUrl(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String more)
getLineResponseUrl
public java.lang.String getLineResponseUrl()
getStreamResponse
public java.io.InputStream getStreamResponse()
throws StreamIOException
- Throws:
StreamIOException
getContentLength
public int getContentLength()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
main
public static final void main(java.lang.String[] args)