public static class RestHttpHelper.HttpResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.HttpResponse |
response |
| Constructor and Description |
|---|
HttpResponse(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
static RestHttpHelper.HttpResponse |
buildMock(int statusCode,
org.apache.http.Header[] responseHeaders,
InputStream responseStream)
Provided for testing of Http responses
|
String |
getResponseBody() |
org.apache.http.Header |
getResponseHeader(String headerName) |
org.apache.http.Header[] |
getResponseHeaders() |
InputStream |
getResponseStream() |
int |
getStatusCode() |
public int getStatusCode()
public InputStream getResponseStream() throws IOException
IOExceptionpublic String getResponseBody() throws IOException
IOExceptionpublic org.apache.http.Header[] getResponseHeaders()
public org.apache.http.Header getResponseHeader(String headerName)
public static RestHttpHelper.HttpResponse buildMock(int statusCode, org.apache.http.Header[] responseHeaders, InputStream responseStream)
Copyright © 2009–2019 DuraSpace. All rights reserved.