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

de.yourinspiration.jexpresso.session.Session Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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