-
- All Implemented Interfaces:
-
au.com.dius.pact.consumer.MockServer,com.sun.net.httpserver.HttpHandler
public abstract class BaseJdkMockServer extends BaseMockServer implements HttpHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBaseJdkMockServer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BasePactpactprivate final MockProviderConfigconfig
-
Constructor Summary
Constructors Constructor Description BaseJdkMockServer(BasePact pact, MockProviderConfig config, HttpServer server, Boolean stopped)
-
Method Summary
Modifier and Type Method Description final BasePactgetPact()final MockProviderConfiggetConfig()Unithandle(HttpExchange exchange)final RequesttoPactRequest(HttpExchange exchange)Unitstart()Unitstop()StringgetUrl()Returns the URL for this mock server. IntegergetPort()Returns the port of the mock server. -
-
Constructor Detail
-
BaseJdkMockServer
BaseJdkMockServer(BasePact pact, MockProviderConfig config, HttpServer server, Boolean stopped)
-
-
Method Detail
-
getPact
final BasePact getPact()
-
getConfig
final MockProviderConfig getConfig()
-
toPactRequest
final Request toPactRequest(HttpExchange exchange)
-
getUrl
String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
-
-
-
-