Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
HttpRequestResult |
doWait(String url) |
HttpRequestResult |
executeMethod(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method) |
HttpRequestResult |
executeMethod(org.apache.commons.httpclient.HttpClient client,
String url) |
HttpRequestResult |
executeMethod(org.apache.commons.httpclient.HttpMethod method) |
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
org.slf4j.Logger |
getLogger() |
protected String |
getMsg(HttpRequestResult result) |
int |
getRequestTimeout() |
protected String |
getResponseBody(org.apache.commons.httpclient.HttpMethod method) |
protected int |
getSecondsRemaining(long endMillis) |
int |
getSleepInterval() |
int |
getTimeout() |
protected String |
getTimeout(long l) |
void |
log(String url,
HttpRequestResult result,
int secondsRemaining) |
void |
setRequestTimeout(int requestTimeout) |
void |
setSleepInterval(int sleepInterval) |
void |
setTimeout(int waitTimeout) |
public HttpUtil()
protected String getTimeout(long l)
public void log(String url, HttpRequestResult result, int secondsRemaining)
protected String getMsg(HttpRequestResult result)
protected int getSecondsRemaining(long endMillis)
public HttpRequestResult doWait(String url)
public org.apache.commons.httpclient.HttpClient getHttpClient()
protected String getResponseBody(org.apache.commons.httpclient.HttpMethod method) throws IOException
IOException
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpMethod method)
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method)
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpClient client, String url)
public int getRequestTimeout()
public void setRequestTimeout(int requestTimeout)
public int getSleepInterval()
public void setSleepInterval(int sleepInterval)
public int getTimeout()
public void setTimeout(int waitTimeout)
public org.slf4j.Logger getLogger()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.