org.zkoss.zk.ui.util
Interface SessionInit


public interface SessionInit

Used to initialize a session when it is created.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
  2. Then, even time ZK loader creates a new session, an instnace of the specified class is instantiated and init(org.zkoss.zk.ui.Session) is called.

Author:
tomyeh

Method Summary
 void init(Session sess)
          Called when a session is created and initialized.
 

Method Detail

init

void init(Session sess)
          throws java.lang.Exception
Called when a session is created and initialized.

If the client is based on HTTP (such as browsers), you could retrieve the HTTP session by Session.getNativeSession()

Throws:
java.lang.Exception


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.