Class BaseJdkMockServer

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

    
    public abstract class BaseJdkMockServer
    extends BaseMockServer implements HttpHandler
                        
    • 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.