io.atlassian.util.adapter.javax.JavaXJspAdapters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakarta-adapters Show documentation
Show all versions of jakarta-adapters Show documentation
A collection of classes for adapting Servlet API 4.0 objects to Servlet API 5.0 and vice versa.
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);
}
}