com.github.tomakehurst.wiremock.client
Class HttpClientUtils

java.lang.Object
  extended by com.github.tomakehurst.wiremock.client.HttpClientUtils

public class HttpClientUtils
extends java.lang.Object


Constructor Summary
HttpClientUtils()
           
 
Method Summary
static byte[] getEntityAsByteArrayAndCloseStream(org.apache.http.HttpResponse httpResponse)
           
static java.lang.String getEntityAsStringAndCloseStream(org.apache.http.HttpResponse httpResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientUtils

public HttpClientUtils()
Method Detail

getEntityAsStringAndCloseStream

public static java.lang.String getEntityAsStringAndCloseStream(org.apache.http.HttpResponse httpResponse)

getEntityAsByteArrayAndCloseStream

public static byte[] getEntityAsByteArrayAndCloseStream(org.apache.http.HttpResponse httpResponse)