public class ProxyClient extends AbstractClient<ProxyClient>
contextPath, expectationSerializer, host, httpRequestSerializer, logger, nettyHttpClient, port, portBindingSerializer, verificationSequenceSerializer, verificationSerializer
Constructor and Description |
---|
ProxyClient(String host,
int port)
Start the client communicating to a the proxy at the specified host and port
for example:
ProxyClient mockServerClient = new ProxyClient("localhost", 1080);
|
ProxyClient(String host,
int port,
String contextPath)
Start the client communicating to the proxy at the specified host and port
and contextPath for example:
ProxyClient mockServerClient = new ProxyClient("localhost", 1080, "/proxy");
|
bind, calculatePath, clear, clear, close, contextPath, formatErrorMessage, isRunning, isRunning, remoteAddress, reset, retrieveLogMessages, retrieveLogMessagesArray, retrieveRecordedExpectations, retrieveRecordedExpectations, retrieveRecordedRequests, retrieveRecordedRequests, sendRequest, stop, stop, verify, verify, verifyZeroInteractions
public ProxyClient(String host, int port)
host
- the host for the MockServer to communicate withport
- the port for the MockServer to communicate withpublic ProxyClient(String host, int port, String contextPath)
host
- the host for the proxy to communicate withport
- the port for the proxy to communicate withcontextPath
- the context path that the proxy war is deployed toCopyright © 2018. All rights reserved.