org.zkoss.zk.ui.http
Class SessionResolverImpl

java.lang.Object
  extended by org.zkoss.zk.ui.http.SessionResolverImpl
All Implemented Interfaces:
SessionResolver

public class SessionResolverImpl
extends java.lang.Object
implements SessionResolver

An implementation of session resolver (SessionResolver) based on HTTP request.

Since:
5.0.0
Author:
tomyeh

Constructor Summary
SessionResolverImpl(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 Session getSession(boolean create)
          Returns the session, or null if no session available and create is false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionResolverImpl

public SessionResolverImpl(javax.servlet.ServletContext ctx,
                           javax.servlet.http.HttpServletRequest request)
Method Detail

getSession

public Session getSession(boolean create)
Description copied from interface: SessionResolver
Returns the session, or null if no session available and create is false.

Specified by:
getSession in interface SessionResolver
Parameters:
create - whether to create the session if not found. If true, a new session will be create if there is no one available.


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo