Package io.quarkus.amazon.lambda.runtime
Class MockEventServer
java.lang.Object
io.quarkus.amazon.lambda.runtime.MockEventServer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected ExecutorService(package private) final AtomicBooleanstatic final Stringstatic final intprotected io.vertx.core.http.HttpServerstatic final Stringprotected static final org.jboss.logging.Loggerstatic final Stringstatic final Stringprotected BlockingQueue<io.vertx.ext.web.RoutingContext>protected ConcurrentHashMap<String,io.vertx.ext.web.RoutingContext> protected io.vertx.ext.web.Router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanHaveCommaValue(String header) voidclose()protected voidprotected StringgetEventContentType(io.vertx.ext.web.RoutingContext request) intgetPort()voidhandleError(io.vertx.ext.web.RoutingContext ctx) voidhandleRequeue(io.vertx.ext.web.RoutingContext ctx) voidhandleResponse(io.vertx.ext.web.RoutingContext ctx) voidnextEvent(io.vertx.ext.web.RoutingContext ctx) voidpostEvent(io.vertx.ext.web.RoutingContext ctx) voidprocessError(io.vertx.ext.web.RoutingContext ctx, io.vertx.ext.web.RoutingContext pending, io.vertx.core.buffer.Buffer buffer) protected io.vertx.core.buffer.BufferprocessEventBody(io.vertx.ext.web.RoutingContext request) voidprocessResponse(io.vertx.ext.web.RoutingContext ctx, io.vertx.ext.web.RoutingContext pending, io.vertx.core.buffer.Buffer buffer) voidvoidstart()voidstart(int port)
-
Field Details
-
log
protected static final org.jboss.logging.Logger log -
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
httpServer
protected io.vertx.core.http.HttpServer httpServer -
router
protected io.vertx.ext.web.Router router -
queue
-
responsePending
-
blockingPool
-
BASE_PATH
- See Also:
-
INVOCATION
- See Also:
-
NEXT_INVOCATION
- See Also:
-
POST_EVENT
- See Also:
-
CONTINUE
- See Also:
-
closed
-
-
Constructor Details
-
MockEventServer
public MockEventServer()
-
-
Method Details
-
canHaveCommaValue
-
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
-
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-