public class MockedWebResponse extends java.lang.Object implements WebResponse
Constructor and Description |
---|
MockedWebResponse(java.lang.String responseString,
int statusCode,
java.util.Map<java.lang.String,java.lang.String> headers) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Headers |
getHeaders() |
java.io.InputStream |
getResponseStream() |
int |
getStatusCode() |
public MockedWebResponse(java.lang.String responseString, int statusCode, java.util.Map<java.lang.String,java.lang.String> headers)
public java.io.InputStream getResponseStream() throws java.io.IOException
getResponseStream
in interface WebResponse
java.io.IOException
public int getStatusCode()
getStatusCode
in interface WebResponse
public Headers getHeaders()
getHeaders
in interface WebResponse
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException