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

org.ssssssss.magicapi.servlet.javaee.MagicJavaEEHttpSession Maven / Gradle / Ivy

The newest version!
package org.ssssssss.magicapi.servlet.javaee;

import org.ssssssss.magicapi.core.servlet.MagicHttpSession;

import javax.servlet.http.HttpSession;

public class MagicJavaEEHttpSession implements MagicHttpSession {

	private final HttpSession session;

	public MagicJavaEEHttpSession(HttpSession session) {
		this.session = session;
	}

	@Override
	public Object getAttribute(String key) {
		return session.getAttribute(key);
	}

	@Override
	public void setAttribute(String key, Object value) {
		session.setAttribute(key, value);
	}

	@Override
	public  T getSession() {
		return (T) session;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy