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

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

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

import java.util.List;
import java.util.Map;
import java.util.Set;

import io.quarkus.runtime.annotations.Recorder;
import io.quarkus.vertx.http.runtime.devmode.AdditionalRouteDescription;
import io.quarkus.vertx.http.runtime.devmode.RouteDescription;

@Recorder
public class ExceptionMapperRecorder {

    public void setStaticResourceRoots(Set resources) {
        NotFoundExceptionMapper.staticResources(resources);
    }

    public void setAdditionalEndpoints(List additionalEndpoints) {
        NotFoundExceptionMapper.setAdditionalEndpoints(additionalEndpoints);
    }

    public void setReactiveRoutes(List reactiveRoutes) {
        NotFoundExceptionMapper.setReactiveRoutes(reactiveRoutes);
    }

    public void setServlets(Map> servletToMapping) {
        NotFoundExceptionMapper.servlets(servletToMapping);
    }

    /**
     * Uses to register the paths of classes that are not annotated with JAX-RS annotations (like Spring Controllers for
     * example)
     *
     * @param nonJaxRsClassNameToMethodPaths A map that contains the class name as a key and a map that
     *        contains the method name to path as a value
     */
    public void nonJaxRsClassNameToMethodPaths(Map nonJaxRsClassNameToMethodPaths) {
        NotFoundExceptionMapper.nonJaxRsClassNameToMethodPaths(nonJaxRsClassNameToMethodPaths);
    }

    public void setHttpRoot(String rootPath) {
        NotFoundExceptionMapper.setHttpRoot(rootPath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy