@Immutable public final class MockRawHttpResponse extends Object implements RawHttpResponse
BaseHttpMessage.HeadersBuilder| Constructor and Description |
|---|
MockRawHttpResponse(String protocolVersion,
Origin origin,
int status,
Map<String,List<String>> headers,
String contentType,
Charset charset,
String body) |
| Modifier and Type | Method and Description |
|---|---|
static RawHttpResponse |
create() |
default <K,V> Map<K,V> |
firstNonNullNorEmpty(Map<K,V> first,
Map<K,V> second) |
Charset |
getCharset() |
String |
getContentType() |
Map<String,List<String>> |
getHeaders() |
Origin |
getOrigin() |
String |
getProtocolVersion() |
int |
getStatus() |
HttpResponse |
withBody() |
public String getProtocolVersion()
getProtocolVersion in interface BaseHttpMessagepublic Origin getOrigin()
getOrigin in interface BaseHttpMessagepublic int getStatus()
getStatus in interface BaseHttpResponsepublic Map<String,List<String>> getHeaders()
getHeaders in interface BaseHttpMessagepublic String getContentType()
getContentType in interface BaseHttpMessagepublic Charset getCharset()
getCharset in interface BaseHttpMessagepublic HttpResponse withBody() throws IOException
withBody in interface RawHttpResponseIOExceptionpublic static RawHttpResponse create()
Copyright © 2015–2016 Zalando SE. All rights reserved.