public class HttpReply extends Object
| Constructor and Description |
|---|
HttpReply(org.apache.commons.httpclient.HttpMethod method,
int code,
String content) |
HttpReply(int code,
String content) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
bind(Class<T> type,
BeesClient root)
Treats the response as JSON string and performs a databinding.
|
int |
getCode() |
String |
getContent() |
String |
toShortString(int max) |
String |
toString() |
public HttpReply(int code,
String content)
public HttpReply(org.apache.commons.httpclient.HttpMethod method,
int code,
String content)
public int getCode()
public String getContent()
public <T> T bind(Class<T> type, BeesClient root) throws IOException
IOExceptionpublic String toShortString(int max)
Copyright © 2011-2015. All Rights Reserved.