de.yourinspiration.jexpresso.session.Session Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jexpresso-session Show documentation
Show all versions of jexpresso-session Show documentation
A JExpresso middleware providing user sessions.
package de.yourinspiration.jexpresso.session;
import java.io.Serializable;
/**
* Represents a user session for HTTP requests.
*
* @author Marcel Härle
*
*/
public interface Session {
/**
* Get the session data for the given name.
*
* @param name
* the name of the session value
* @param clazz
* the class of the value
* @return returns null
if no such name exists
*/
T get(final String name, final Class clazz);
/**
* Set the value for the given name.
*
* @param name
* the name
* @param value
* the value
*/
void set(final String name, final Serializable value);
/**
* Invalidate the session.
*/
void invalidate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy