-
- All Implemented Interfaces:
-
au.com.dius.pact.consumer.MockServer,com.sun.net.httpserver.HttpHandler
public class MockHttpServer extends BaseJdkMockServer
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpServerserverprivate Booleanstoppedprivate final ConcurrentHashMap<IRequest, List<PactVerificationResult>>mismatchedRequestsprivate final ConcurrentLinkedQueue<IRequest>matchedRequestsprivate final RequestMatchingrequestMatcherprivate final BasePactpactprivate final MockProviderConfigconfig
-
Constructor Summary
Constructors Constructor Description MockHttpServer(BasePact pact, MockProviderConfig config)
-
Method Summary
Modifier and Type Method Description final HttpServergetServer()final BooleangetStopped()final ConcurrentHashMap<IRequest, List<PactVerificationResult>>getMismatchedRequests()final ConcurrentLinkedQueue<IRequest>getMatchedRequests()final RequestMatchinggetRequestMatcher()final BasePactgetPact()final MockProviderConfiggetConfig()final UnitsetStopped(Boolean stopped)-
Methods inherited from class au.com.dius.pact.consumer.MockHttpServer
contentType, getPort, getUrl, handle, initServer, pactResponseToHttpExchange, start, stop, toPactRequest -
Methods inherited from class com.sun.net.httpserver.HttpHandler
equals, hashCode, toString -
Methods inherited from class au.com.dius.pact.consumer.BaseJdkMockServer
invalidResponse, runAndWritePact, validateMockServerState, verifyResultAndWritePact, waitForServer -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MockHttpServer
MockHttpServer(BasePact pact, MockProviderConfig config)
-
-
Method Detail
-
getServer
final HttpServer getServer()
-
getStopped
final Boolean getStopped()
-
getMismatchedRequests
final ConcurrentHashMap<IRequest, List<PactVerificationResult>> getMismatchedRequests()
-
getMatchedRequests
final ConcurrentLinkedQueue<IRequest> getMatchedRequests()
-
getRequestMatcher
final RequestMatching getRequestMatcher()
-
getPact
final BasePact getPact()
-
getConfig
final MockProviderConfig getConfig()
-
setStopped
final Unit setStopped(Boolean stopped)
-
-
-
-