Class MockEventServer

java.lang.Object
io.quarkus.amazon.lambda.runtime.MockEventServer
All Implemented Interfaces:
Closeable, AutoCloseable

public class MockEventServer extends Object implements Closeable
  • Field Details

  • Constructor Details

    • MockEventServer

      public MockEventServer()
  • Method Details

    • canHaveCommaValue

      public static boolean canHaveCommaValue(String header)
    • start

      public void start()
    • start

      public void start(int port)
    • getPort

      public int getPort()
    • setupRoutes

      public void setupRoutes()
    • defaultHandlerSetup

      protected void defaultHandlerSetup()
    • postEvent

      public void postEvent(io.vertx.ext.web.RoutingContext ctx)
    • nextEvent

      public void nextEvent(io.vertx.ext.web.RoutingContext ctx)
    • getEventContentType

      protected String getEventContentType(io.vertx.ext.web.RoutingContext request)
    • processEventBody

      protected io.vertx.core.buffer.Buffer processEventBody(io.vertx.ext.web.RoutingContext request)
    • handleResponse

      public void handleResponse(io.vertx.ext.web.RoutingContext ctx)
    • handleRequeue

      public void handleRequeue(io.vertx.ext.web.RoutingContext ctx)
    • processResponse

      public void processResponse(io.vertx.ext.web.RoutingContext ctx, io.vertx.ext.web.RoutingContext pending, io.vertx.core.buffer.Buffer buffer)
    • handleError

      public void handleError(io.vertx.ext.web.RoutingContext ctx)
    • processError

      public void processError(io.vertx.ext.web.RoutingContext ctx, io.vertx.ext.web.RoutingContext pending, io.vertx.core.buffer.Buffer buffer)
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException