FileDocCategorySizeDatePackage
ConnectionSession.javaAPI DocExample4353Tue May 29 16:57:14 BST 2007com.sun.xml.ws.transport.tcp.util

ConnectionSession

public abstract class ConnectionSession extends Object implements com.sun.xml.ws.transport.tcp.connectioncache.spi.transport.Connection
author
Alexey Stashok

Fields Summary
ChannelZeroContext
channelZeroContext
private com.sun.xml.ws.transport.tcp.io.Connection
connection
private boolean
isClosed
private final SessionCloseListener
sessionCloseListener
Constructors Summary
public ConnectionSession(com.sun.xml.ws.transport.tcp.io.Connection connection, SessionCloseListener sessionCloseListener)

        this.connection = connection;
        this.sessionCloseListener = sessionCloseListener;
    
Methods Summary
public voidclose()

        if (sessionCloseListener != null) {
            sessionCloseListener.notifySessionClose(this);
        }
        
        synchronized(this) {
            if (isClosed) return;
            isClosed = true;
        }
        
        try {
            connection.close();
        } catch (IOException ex) {
        }
        
        connection = null;
    
public abstract voidderegisterChannel(ChannelContext context)

public ChannelContextfindWSServiceContextByChannelId(int channelId)

return null;
public ChannelContextfindWSServiceContextByURI(WSTCPURI wsTCPURI)

return null;
public java.lang.ObjectgetAttribute(java.lang.String name)

return null;
public abstract intgetChannelsAmount()

public com.sun.xml.ws.transport.tcp.io.ConnectiongetConnection()

        return connection;
    
public ChannelContextgetServiceChannelContext()

        return channelZeroContext;
    
protected voidinit()

        channelZeroContext = new ChannelZeroContext(this);
        registerChannel(channelZeroContext);
    
public voidonReadCompleted()

public abstract voidregisterChannel(ChannelContext context)

public voidsetAttribute(java.lang.String name, java.lang.Object value)