|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.kristofa.test.http.HttpResponseImpl
public class HttpResponseImpl
HttpResponse implementation.
| Constructor Summary | |
|---|---|
HttpResponseImpl(int httpCode,
String contentType,
byte[] content)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResponseImpl(int httpCode,
String contentType,
byte[] content)
httpCode - http response code.contentType - Content type, can be null.content - Content, can be null.| Method Detail |
|---|
public int getHttpCode()
getHttpCode in interface HttpResponsepublic String getContentType()
getContentType in interface HttpResponsepublic byte[] getContent()
getContent in interface HttpResponsepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||