public class SampleServer extends Dispatcher
| Constructor and Description |
|---|
SampleServer(SSLContext sslContext,
String root,
int port) |
| Modifier and Type | Method and Description |
|---|---|
MockResponse |
dispatch(RecordedRequest request)
Returns a response to satisfy
request. |
static void |
main(String[] args) |
void |
run() |
peek, shutdownpublic SampleServer(SSLContext sslContext, String root, int port)
public void run()
throws IOException
IOExceptionpublic MockResponse dispatch(RecordedRequest request)
Dispatcherrequest. This method may block (for instance, to wait on
a CountdownLatch).dispatch in class DispatcherCopyright © 2017. All Rights Reserved.