public class TakHttpResponse
extends java.lang.Object
Constructor and Description |
---|
TakHttpResponse(HttpRequestBase request,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
java.lang.String |
getContentType() |
HttpEntity |
getEntity() |
Header |
getHeader(java.lang.String name) |
long |
getHeaderLong(java.lang.String name) |
java.lang.String |
getHeaderString(java.lang.String name) |
java.lang.String |
getReasonPhrase() |
java.lang.String |
getRequestUrl() |
int |
getStatusCode() |
StatusLine |
getStatusLine() |
java.lang.String |
getStringEntity() |
java.lang.String |
getStringEntity(java.lang.String verify) |
boolean |
isCreated() |
boolean |
isOk() |
boolean |
isStatus(int status) |
java.lang.String |
toString() |
void |
verify(int status) |
void |
verifyOk() |
public TakHttpResponse(HttpRequestBase request, HttpResponse response)
public java.lang.String getRequestUrl()
public StatusLine getStatusLine()
public int getStatusCode()
public void verifyOk() throws TakHttpException
TakHttpException
public boolean isOk()
public boolean isCreated()
public void verify(int status) throws TakHttpException
TakHttpException
public boolean isStatus(int status)
public java.lang.String getStringEntity() throws java.io.IOException
java.io.IOException
public java.lang.String getStringEntity(java.lang.String verify) throws java.io.IOException
java.io.IOException
public HttpEntity getEntity()
public java.lang.String getReasonPhrase()
public Header getHeader(java.lang.String name)
public long getHeaderLong(java.lang.String name)
public java.lang.String getHeaderString(java.lang.String name)
public long getContentLength()
public java.lang.String getContentType()
public java.lang.String toString()
toString
in class java.lang.Object