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

io.atlassian.util.adapter.javax.JavaXJspAdapters Maven / Gradle / Ivy

Go to download

A collection of classes for adapting Servlet API 4.0 objects to Servlet API 5.0 and vice versa.

There is a newer version: 0.1.0
Show newest version
package io.atlassian.util.adapter.javax;

import io.atlassian.util.adapter.javax.el.JavaXELContextAdapter;
import io.atlassian.util.adapter.javax.servlet.jsp.JavaXJspFactoryAdapter;

import static io.atlassian.util.adapter.util.WrapperUtil.applyIfNonNull;

public class JavaXJspAdapters {
    private JavaXJspAdapters() {
    }

    public static javax.servlet.jsp.JspFactory asJavaXJsp(jakarta.servlet.jsp.JspFactory delegate) {
        return applyIfNonNull(delegate, JavaXJspFactoryAdapter::from);
    }

    public static javax.el.ELContext asJavaXJsp(jakarta.el.ELContext delegate) {
        return applyIfNonNull(delegate, JavaXELContextAdapter::from);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy