public class BaseJdkMockServer
extends BaseMockServer
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseJdkMockServer.Companion |
| Modifier and Type | Field and Description |
|---|---|
static BaseJdkMockServer.Companion |
Companion |
| Constructor and Description |
|---|
BaseJdkMockServer(au.com.dius.pact.core.model.RequestResponsePact pact,
MockProviderConfig config,
com.sun.net.httpserver.HttpServer server,
boolean stopped) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Returns the port of the mock server. This will be the port the server is bound to.
|
java.lang.String |
getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
|
void |
handle(com.sun.net.httpserver.HttpExchange exchange) |
void |
start() |
void |
stop() |
generatePactResponse, getConfig, getPact, runAndWritePact, start, stop, validateMockServerState, verifyResultAndWritePact, waitForServergetPort, getUrl, runAndWritePact, validateMockServerStatepublic static BaseJdkMockServer.Companion Companion
public BaseJdkMockServer(au.com.dius.pact.core.model.RequestResponsePact pact,
MockProviderConfig config,
com.sun.net.httpserver.HttpServer server,
boolean stopped)
public void handle(com.sun.net.httpserver.HttpExchange exchange)
public void start()
public void stop()
public java.lang.String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
public int getPort()
Returns the port of the mock server. This will be the port the server is bound to.