FileDocCategorySizeDatePackage
ClientConnectionSession.javaAPI DocExample4239Tue May 29 16:57:04 BST 2007com.sun.xml.ws.transport.tcp.client

ClientConnectionSession

public final class ClientConnectionSession extends com.sun.xml.ws.transport.tcp.util.ConnectionSession
author
Alexey Stashok

Fields Summary
private Map
attributes
private Map
url2ChannelMap
private boolean
isClosed
Constructors Summary
public ClientConnectionSession(com.sun.xml.ws.transport.tcp.io.Connection connection, com.sun.xml.ws.transport.tcp.util.SessionCloseListener sessionCloseListener)

    
           
        super(connection, sessionCloseListener);
        init();
    
Methods Summary
public voidclose()

        super.close();
        attributes = null;
    
public voidderegisterChannel(com.sun.xml.ws.transport.tcp.util.ChannelContext context)

        String wsTCPURLString = context.getTargetWSURI().toString();
        ChannelContext channelToRemove = url2ChannelMap.get(wsTCPURLString);
        if (channelToRemove.getChannelId() == context.getChannelId()) {
            url2ChannelMap.remove(wsTCPURLString);
        }
    
public com.sun.xml.ws.transport.tcp.util.ChannelContextfindWSServiceContextByURI(com.sun.xml.ws.transport.tcp.util.WSTCPURI wsTCPURI)

        return url2ChannelMap.get(wsTCPURI.toString());
    
public java.lang.ObjectgetAttribute(java.lang.String name)

        return attributes.get(name);
    
public intgetChannelsAmount()

        return url2ChannelMap.size();
    
public voidonReadCompleted()

        WSConnectionManager.getInstance().freeConnection(this);
    
public voidregisterChannel(com.sun.xml.ws.transport.tcp.util.ChannelContext context)

        url2ChannelMap.put(context.getTargetWSURI().toString(), context);
    
public voidsetAttribute(java.lang.String name, java.lang.Object value)

        attributes.put(name, value);