Package 

Class BaseJdkMockServer

  • All Implemented Interfaces:
    au.com.dius.pact.consumer.MockServer , com.sun.net.httpserver.HttpHandler

    
    public abstract class BaseJdkMockServer
    extends BaseMockServer implements HttpHandler
                        
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit handle(HttpExchange exchange)
      final Request toPactRequest(HttpExchange exchange)
      Unit start()
      Unit stop()
      String getUrl() Returns the URL for this mock server.
      Integer getPort() Returns the port of the mock server.
      • Methods inherited from class au.com.dius.pact.consumer.BaseMockServer

        getConfig, getPact, runAndWritePact, validateMockServerState, verifyResultAndWritePact, waitForServer
      • Methods inherited from class au.com.dius.pact.consumer.MockServer

        updatePact
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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.

      • getPort

         Integer getPort()

        Returns the port of the mock server. This will be the port the server is bound to.