All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.resteasy.runtime.ResteasyServlet Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkus.resteasy.runtime;

import java.io.IOException;

import jakarta.enterprise.inject.spi.CDI;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher;

import io.quarkus.vertx.http.runtime.CurrentVertxRequest;

public class ResteasyServlet extends HttpServlet30Dispatcher {
    @Override
    public void service(String httpMethod, HttpServletRequest request, HttpServletResponse response) throws IOException {
        CurrentVertxRequest currentVertxRequest = CDI.current().select(CurrentVertxRequest.class).get();
        ContextUtil.pushContext(currentVertxRequest.getCurrent());

        super.service(httpMethod, request, response);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy