com.sas.servlet.util
Class BoundConnection

com.sas.servlet.util.BoundConnection

public class BoundConnection

Holder for Connection objects that are bound into the HTTP session. When the bound object is unbound the connection will be stopped


Constructor Summary
BoundConnection(Connection connection)
          Create a new BoundConnection object
 
Method Summary
 Connection getConnection()
          Gets the current connection
 void valueBound(com.sas.servlet.util.HttpSessionBindingEvent event)
          Called when this object is bound into a session.
 void valueUnbound(com.sas.servlet.util.HttpSessionBindingEvent event)
          Called when this object is unbound from a session.
 

Constructor Detail

BoundConnection

public BoundConnection(Connection connection)
Create a new BoundConnection object
Parameters:
connection - The connection
Method Detail

valueBound

public void valueBound(com.sas.servlet.util.HttpSessionBindingEvent event)
Called when this object is bound into a session.
Parameters:
event - The event

valueUnbound

public void valueUnbound(com.sas.servlet.util.HttpSessionBindingEvent event)
Called when this object is unbound from a session. The connection will be properly closed.
Parameters:
event - The event

getConnection

public Connection getConnection()
Gets the current connection
Returns:
The connection object


Version: 1.2.20000317.001 Formatted: 2000/07/06 15:57:33PM