public class HttpResponseImpl extends Object implements HttpResponse
| Constructor and Description |
|---|
HttpResponseImpl(int httpCode,
String contentType,
byte[] content)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getContent()
Get response content.
|
String |
getContentType()
Get content type.
|
int |
getHttpCode()
Gets a HTTP response code.
|
int |
hashCode() |
String |
toString() |
public HttpResponseImpl(int httpCode,
String contentType,
byte[] content)
httpCode - http response code.contentType - Content type, can be null.content - Content, can be null.public int getHttpCode()
getHttpCode in interface HttpResponsepublic String getContentType()
getContentType in interface HttpResponsepublic byte[] getContent()
getContent in interface HttpResponseCopyright © 2014. All Rights Reserved.