Package com.trendrr.strest.contrib.sessions

Source Code of com.trendrr.strest.contrib.sessions.DefaultSessionPersistence

/**
*
*/
package com.trendrr.strest.contrib.sessions;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.trendrr.oss.DynMap;


/**
* @author Dustin Norlander
* @created Jun 14, 2011
*
*/
public class DefaultSessionPersistence implements SessionPersistence {

  protected Log log = LogFactory.getLog(DefaultSessionPersistence.class);

  /* (non-Javadoc)
   * @see com.trendrr.strest.contrib.sessions.SessionPersistence#loadSession(java.lang.String)
   */
  @Override
  public Map<String, Object> loadSession(String sessionId) {
    log.info("Loading session (not really): " + sessionId);
    return new DynMap();
  }

  /* (non-Javadoc)
   * @see com.trendrr.strest.contrib.sessions.SessionPersistence#saveSession(java.lang.String, java.util.Map)
   */
  @Override
  public void saveSession(String sessionId, Map<String, Object> values) {
    log.info("Saving session (not really though) : " + sessionId + " " + values);
  }

  /* (non-Javadoc)
   * @see com.trendrr.strest.contrib.sessions.SessionPersistence#deleteSession(java.lang.String)
   */
  @Override
  public void deleteSession(String sessionId) {
    log.info("Deleting session (not really though) : " + sessionId);
   
  }
}
TOP

Related Classes of com.trendrr.strest.contrib.sessions.DefaultSessionPersistence

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.