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

dk.mada.jaxrs.generator.mpclient.imports.JaxRs Maven / Gradle / Ivy

package dk.mada.jaxrs.generator.mpclient.imports;

import java.util.Optional;

import dk.mada.jaxrs.generator.mpclient.imports.Imports.ImportRenderPrefs;

/**
 * JAX-RS import paths.
 */
public enum JaxRs implements TypedImport {
    /** All the JaxRs path types. */
    RS_STAR("javax.ws.rs.*"),
    /** FormParam. */
    FORM_PARAM("javax.ws.rs.FormParam"),
    /** MediaType. */
    MEDIA_TYPE("javax.ws.rs.core.MediaType");

    /** The import path for the type. */
    private final String importPath;

    JaxRs(String importPath) {
        this.importPath = importPath;
    }

    @Override
    public Optional path(ImportRenderPrefs irp) {
        return Optional.of(irp.fixJavaxJakartaImportPath(importPath));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy