com.nexaweb.server.pushconnection
Interface PushConnectionListener


public interface PushConnectionListener

Interface PushConnectionListener may be implemented to be notified of the connect and disconnect events of PushConnections.

See Also:
PushConnectionManager.addPushConnectionListener(com.nexaweb.server.pushconnection.PushConnectionListener), PushConnectionManager.removePushConnectionListener(com.nexaweb.server.pushconnection.PushConnectionListener)

Method Summary
 void onConnect(PushConnection connection, HttpServletRequest request)
          This method is called when a client opens a PushConnection.
 void onDisconnect(ServerSession session)
          This method is called when a PushConnection is closed.
 

Method Detail

onConnect

public void onConnect(PushConnection connection,
                      HttpServletRequest request)
This method is called when a client opens a PushConnection.

Parameters:
connection - The PushConnection that has just been opened.
request - The HttpServletRequest that is opening the connection.

onDisconnect

public void onDisconnect(ServerSession session)
This method is called when a PushConnection is closed. Note that it is possible that the PushConnection has been closed as a result of session exit, so be sure to check the session's isValid() method before using it.

Parameters:
session - The ServerSession which no longer has a PushConnection.


Copyright © 2005 Nexaweb Technologies, Inc. All Rights Reserved.