io.atlassian.util.adapter.javax.servlet.http.JavaXHttpSessionContextAdapter 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.servlet.http;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionContext;
import java.util.Enumeration;
import static java.util.Collections.emptyEnumeration;
public class JavaXHttpSessionContextAdapter implements HttpSessionContext {
public static final HttpSessionContext INSTANCE = new JavaXHttpSessionContextAdapter();
private JavaXHttpSessionContextAdapter() {
}
@Override
public HttpSession getSession(String sessionId) {
return null;
}
@Override
public Enumeration getIds() {
return emptyEnumeration();
}
}