All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.common.session.StandardSessionFacade Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package me.chanjar.weixin.common.session;

import java.util.Enumeration;

public class StandardSessionFacade implements WxSession {

  /**
   * Wrapped session object.
   */
  private WxSession session = null;

  public StandardSessionFacade(StandardSession session) {
    this.session = session;
  }

  public InternalSession getInternalSession() {
    return (InternalSession) session;
  }

  @Override
  public Object getAttribute(String name) {
    return session.getAttribute(name);
  }

  @Override
  public Enumeration getAttributeNames() {
    return session.getAttributeNames();
  }

  @Override
  public void setAttribute(String name, Object value) {
    session.setAttribute(name, value);
  }

  @Override
  public void removeAttribute(String name) {
    session.removeAttribute(name);
  }

  @Override
  public void invalidate() {
    session.invalidate();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy