com.jdon.controller.context.web.HttpSessionWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdonframework Show documentation
Show all versions of jdonframework Show documentation
JdonFramework is a java framework that you can use to build your Domain Driven Design + CQRS + EventSource applications with asynchronous concurrency and higher throughput.
package com.jdon.controller.context.web;
import javax.servlet.http.HttpSession;
import com.jdon.controller.context.SessionWrapper;
public class HttpSessionWrapper implements SessionWrapper {
private HttpSession session;
public HttpSessionWrapper(HttpSession session) {
super();
this.session = session;
}
public Object getAttribute(String key) {
return session.getAttribute(key);
}
public void setAttribute(String key, Object o) {
session.setAttribute(key, o);
}
}