Class DigipostApiMock

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class DigipostApiMock
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    • Field Detail

      • defaultResponse

        public final org.apache.http.client.methods.CloseableHttpResponse defaultResponse
    • Constructor Detail

      • DigipostApiMock

        public DigipostApiMock​(java.time.Clock clock)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange httpContext)
                           throws java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception
      • stop

        public void stop()
      • init

        public void init()
      • getDefaultResponse

        public static org.apache.http.client.methods.CloseableHttpResponse getDefaultResponse​(java.time.Clock clock)