org.kuali.maven.plugins.dnsme
Class HttpUtil
java.lang.Object
org.kuali.maven.plugins.dnsme.HttpUtil
public class HttpUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpUtil
public HttpUtil()
getTimeout
protected String getTimeout(long l)
log
public void log(String url,
HttpRequestResult result,
int secondsRemaining)
getMsg
protected String getMsg(HttpRequestResult result)
getSecondsRemaining
protected int getSecondsRemaining(long endMillis)
doWait
public HttpRequestResult doWait(String url)
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient()
getResponseBody
protected String getResponseBody(org.apache.commons.httpclient.HttpMethod method)
throws IOException
- Throws:
IOException
executeMethod
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpMethod method)
executeMethod
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method)
executeMethod
public HttpRequestResult executeMethod(org.apache.commons.httpclient.HttpClient client,
String url)
sleep
protected void sleep(long millis)
getRequestTimeout
public int getRequestTimeout()
setRequestTimeout
public void setRequestTimeout(int requestTimeout)
getSleepInterval
public int getSleepInterval()
setSleepInterval
public void setSleepInterval(int sleepInterval)
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int waitTimeout)
getLogger
public org.slf4j.Logger getLogger()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.