org.kuali.maven.plugins.dnsme
Class HttpUtil

java.lang.Object
  extended by org.kuali.maven.plugins.dnsme.HttpUtil

public class HttpUtil
extends Object


Constructor Summary
HttpUtil()
           
 
Method Summary
 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)
           
protected  void sleep(long millis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUtil

public HttpUtil()
Method Detail

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.