public class HttpResponse extends Object
Class which encapsulates HTTP response data.
Constructor and Description |
---|
HttpResponse(HttpStatusCode status,
InputStream stream)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Retrieves the body for the current
InputStream . |
HttpStatusCode |
getStatus()
Getter for status.
|
InputStream |
getStream()
Getter for stream.
|
public HttpResponse(HttpStatusCode status, InputStream stream)
Overloaded constructor.
status
- the statusstream
- the streampublic HttpStatusCode getStatus()
Getter for status.
public InputStream getStream()
Getter for stream.
public String getBody()
Retrieves the body for the current InputStream
.
Copyright © 2018. All rights reserved.