TokenStateHolder.java :  » Web-Framework » RSF » uk » org » ponder » rsf » state » Java Open Source

Java Open Source » Web Framework » RSF 
RSF » uk » org » ponder » rsf » state » TokenStateHolder.java
/*
 * Created on Nov 12, 2005
 */
package uk.org.ponder.rsf.state;

import uk.org.ponder.rsf.preservation.StatePreservationStrategy;

/** The repository of all inter-request state in RSF, certainly on the
 * server side. Some client-side storage strategies may bypass TSH and
 * simply implement {@link StatePreservationStrategy} directly. */
public interface TokenStateHolder {
  /** Returns any TokenRequestState object with the specified ID.
   * @return The required TRS object, or <code>null</code> if none is stored.
   */
  public Object getTokenState(String tokenID);
  
  /** Stores the supplied TokenRequestState object in the repository */
  public void putTokenState(String tokenID, Object trs);
  /** Clear the token with supplied ID from state */
  public void clearTokenState(String tokenID);
  /** Returns a (probably request-variable) key by which the specific
   * storage for this TSH may be indexed.
   */
  public String getId();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.