/*******************************************************************************
 * Copyright 2Fi Business Solutions Ltd.
 *
 * This code is copyrighted. Under no circumstances should any party, people,
 * or organization should redistribute any portions of this code in any form,
 * either verbatim or through electronic media, to any third parties, unless
 * under explicit written permission by 2Fi Business Solutions Ltd.
 ******************************************************************************/
package com.ffii.core;

import javax.servlet.http.HttpServletRequest;

/**
 * Get or Set Session Attributes
 *
 * @author Patrick
 */
public class Session {

	public static final String AVAILABLE_LOCALES = "availableLocales";

	/**
	 * Get session attribute
	 */
	public static Object getAttribute(HttpServletRequest request, String name) {
		return request.getSession().getAttribute(name);
	}

	/**
	 * Set session attribute
	 */
	public static void setAttribute(HttpServletRequest request, String name, Object value) {
		request.getSession().setAttribute(name, value);
	}

}