1/*2 * Copyright 2000-2002,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617// package18packageorg.apache.jetspeed.services.statemanager;
1920/***21* <p>SessionState is an interface for objects that provide name - value information sets22* with a unique key that can be used in the StateManager service</p>23* <p>See the proposal: jakarta-jetspeed/proposals/StateManager.txt for more details.</p>24* @version $Revision: 1.5 $25* @see org.apache.jetspeed.services.statemanager.StateManagerService26* @author <a href="mailto:ggolden@apache.org">Glenn R. Golden</a>27*/28publicinterfaceSessionState29 {
30/***31 * Access the named attribute.32 * @param name The attribute name.33 * @return The named attribute value.34 */35public Object getAttribute( String name );
3637/***38 * Set the named attribute value to the provided object.39 * @param name The attribute name.40 * @param value The value of the attribute (any object type).41 */42publicvoid setAttribute( String name, Object value );
4344/***45 * Remove the named attribute, if it exists.46 * @param name The attribute name.47 */48publicvoid removeAttribute( String name );
4950/***51 * Remove all attributes.52 */53publicvoid clear();
5455/***56 * Access an array of all names of attributes stored in the SessionState.57 * @return An array of all names of attribute stored in the SessionState.58 */59public String[] getAttributeNames();
6061/***62 * Access the unique StateManager key for the SessionState.63 * @return the unique StateManager key for the SessionState.64 */65public String getKey();
6667/***68 * Retire, forget about and clean up this state.69 */70publicvoid retire();
7172 } // interface SessionState7374/***********************************************************************************75*76* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v 1.5 2004/02/23 03:38:28 jford Exp $77*78**********************************************************************************/79