io.quarkus.reactivemessaging.http.runtime.ReactiveHttpHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-reactive-messaging-http Show documentation
Show all versions of quarkus-reactive-messaging-http Show documentation
Connect to HTTP or WebSocket and expose HTTP or WebSocket endpoints for Reactive Messaging
package io.quarkus.reactivemessaging.http.runtime;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
class ReactiveHttpHandler implements Handler {
private final ReactiveHttpHandlerBean handler;
ReactiveHttpHandler(ReactiveHttpHandlerBean handler) {
this.handler = handler;
}
@Override
public void handle(RoutingContext event) {
try {
handler.handle(event);
} catch (RuntimeException any) {
event.fail(any);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy