jenkins.plugins.http_request.util
Class HttpClientUtil

java.lang.Object
  extended by jenkins.plugins.http_request.util.HttpClientUtil

public class HttpClientUtil
extends Object

Author:
Janario Oliveira

Constructor Summary
HttpClientUtil()
           
 
Method Summary
 org.apache.http.client.methods.HttpRequestBase createRequestBase(RequestAction requestAction)
           
 org.apache.http.HttpResponse execute(org.apache.http.impl.client.DefaultHttpClient client, org.apache.http.protocol.HttpContext context, org.apache.http.client.methods.HttpRequestBase method, PrintStream logger, boolean consolLogResponseBody, Integer timeout)
           
 org.apache.http.client.methods.HttpDelete makeDelete(RequestAction requestAction)
           
 org.apache.http.client.methods.HttpGet makeGet(RequestAction requestAction)
           
 org.apache.http.client.methods.HttpHead makeHead(RequestAction requestAction)
           
 org.apache.http.client.methods.HttpPost makePost(RequestAction requestAction)
           
 org.apache.http.client.methods.HttpPut makePut(RequestAction requestAction)
           
 void setOutputFile(hudson.FilePath filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientUtil

public HttpClientUtil()
Method Detail

setOutputFile

public void setOutputFile(hudson.FilePath filePath)

createRequestBase

public org.apache.http.client.methods.HttpRequestBase createRequestBase(RequestAction requestAction)
                                                                 throws IOException
Throws:
IOException

makeGet

public org.apache.http.client.methods.HttpGet makeGet(RequestAction requestAction)
                                               throws IOException
Throws:
IOException

makeHead

public org.apache.http.client.methods.HttpHead makeHead(RequestAction requestAction)
                                                 throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

makePost

public org.apache.http.client.methods.HttpPost makePost(RequestAction requestAction)
                                                 throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

makePut

public org.apache.http.client.methods.HttpPut makePut(RequestAction requestAction)
                                               throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

makeDelete

public org.apache.http.client.methods.HttpDelete makeDelete(RequestAction requestAction)
                                                     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

execute

public org.apache.http.HttpResponse execute(org.apache.http.impl.client.DefaultHttpClient client,
                                            org.apache.http.protocol.HttpContext context,
                                            org.apache.http.client.methods.HttpRequestBase method,
                                            PrintStream logger,
                                            boolean consolLogResponseBody,
                                            Integer timeout)
                                     throws IOException,
                                            InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2004-2015. All Rights Reserved.