hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-hivemind Wiki] Update of "ClientStateStorage" by Marcus Schulte
Date Mon, 26 Sep 2005 11:25:30 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-hivemind Wiki" for change
notification.

The following page has been changed by Marcus Schulte:
http://wiki.apache.org/jakarta-hivemind/ClientStateStorage

New page:
{{{
/*
 * Created on 31.05.2005
 */
package scm.hivemind.statefulservice;

import javax.servlet.http.HttpSession;



/**
 * Provides storage for stateful (long-lived) services. Should normally use
 * a HTTP-Session which must be provided to it externally (by some Filter).
 * For testing outside of a servlet-container it can also use an own,
 * Map-based implementation.
 * 
 * @author Marcus Schulte
 */
public interface ClientStateStorage {
	/**
	 * provides the current user's session to the Storage. should be called
	 * by a filter at the beginning of each request.
	 * 
	 * @param session
	 */
	void provideSession( HttpSession session );
	
	
	/**
	 * store a service.
	 * 
	 * @param key
	 * @param obj
	 */
	void store( String key, StateStorageClearanceListener obj);
	
	/**
	 * retrieve a service.
	 * 
	 * @param key
	 * @return
	 */
	StateStorageClearanceListener retrieve( String key );
	
	
	/**
	 * <b> testing only </b> clears the client store with the given Id
	 * 
	 * @param clientId
	 */
	void clear( String clientId );

	/**
	 * <b> testing only </b> sets the client store to the one 
	 * with the given Id, creating it as needed.
	 * 
	 * @param clientId
	 */
	void setClientId(String clientId);
}

}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message