| Constructor and Description |
|---|
TestingResponse(HttpStatus status,
com.google.common.collect.ListMultimap<String,String> headers,
byte[] bytes) |
TestingResponse(HttpStatus status,
com.google.common.collect.ListMultimap<String,String> headers,
InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ListMultimap<String,String> |
contentType(com.google.common.net.MediaType type) |
long |
getBytesRead() |
com.google.common.collect.ListMultimap<HeaderName,String> |
getHeaders() |
InputStream |
getInputStream() |
int |
getStatusCode() |
static Response |
mockResponse(HttpStatus status,
com.google.common.net.MediaType type,
String content) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeader, getHeaderspublic TestingResponse(HttpStatus status, com.google.common.collect.ListMultimap<String,String> headers, byte[] bytes)
public TestingResponse(HttpStatus status, com.google.common.collect.ListMultimap<String,String> headers, InputStream input)
public int getStatusCode()
getStatusCode in interface Responsepublic com.google.common.collect.ListMultimap<HeaderName,String> getHeaders()
getHeaders in interface Responsepublic long getBytesRead()
getBytesRead in interface Responsepublic InputStream getInputStream() throws IOException
getInputStream in interface ResponseIOExceptionpublic static com.google.common.collect.ListMultimap<String,String> contentType(com.google.common.net.MediaType type)
public static Response mockResponse(HttpStatus status, com.google.common.net.MediaType type, String content)
Copyright © 2010–2020 Airlift. All rights reserved.