co.cask.common.http
Class HttpResponse

java.lang.Object
  extended by co.cask.common.http.HttpResponse
Direct Known Subclasses:
ObjectResponse

public class HttpResponse
extends Object

Return type for http requests executed by HttpResponse


Method Summary
 com.google.common.collect.Multimap<String,String> getHeaders()
           
 byte[] getResponseBody()
           
 String getResponseBodyAsString()
           
 String getResponseBodyAsString(Charset charset)
           
 int getResponseCode()
           
 String getResponseMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResponseCode

public int getResponseCode()

getResponseMessage

public String getResponseMessage()

getResponseBody

public byte[] getResponseBody()

getResponseBodyAsString

public String getResponseBodyAsString()

getResponseBodyAsString

public String getResponseBodyAsString(Charset charset)

getHeaders

public com.google.common.collect.Multimap<String,String> getHeaders()


Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.