Sha256: 9ffb5534413387330c2e980de503b64abd703783608be19c979d64f05094ce20

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

package org.mortbay.jetty.servlet.wadi;

import java.util.Map;

public interface WadiSession
{
        
    /**
     * Gets the sessionId.
     * 
     * @return sessionId.
     */
    String getSessionId();

    /**
     * Map like contract to manipulate state information.
     */
    Object addState(String key, Object value);

    /**
     * Map like contract to manipulate state information.
     */
    Object getState(String key);

    /**
     * Map like contract to manipulate state information.
     */
    Object removeState(String key);
    
    /**
     * Map like contract to manipulate state information.
     * <p>
     * The returned Map is mutable and is backed by the session.
     */
    Map getState();
    
    /**
     * Releases the session.
     * <p>
     * When a Session is released, it is released from the underlying set of SessionManagers. In other words, its
     * sessionId is unknown and its state is permanently lost. After the release of a Session, the behavior of
     * the other methods is undefined.
     */
    void release();
    
    /**
     * Notifies the session that state accesses are now completed. 
     * <p>
     * When state accesses end, the underlying local SessionManager may decide to replicate synchronously or
     * asynchronously the current state to remote SessionManagers.
     */
    void onEndAccess();
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miso-java-0.1.5 jetty/contrib/wadi/src/main/java/org/mortbay/jetty/servlet/wadi/WadiSession.java
miso-java-0.1.4 jetty/contrib/wadi/src/main/java/org/mortbay/jetty/servlet/wadi/WadiSession.java
miso-java-0.1.3 jetty/contrib/wadi/src/main/java/org/mortbay/jetty/servlet/wadi/WadiSession.java
miso-java-0.1.2 jetty/contrib/wadi/src/main/java/org/mortbay/jetty/servlet/wadi/WadiSession.java