com.sun.xml.ws.transport.tcp.util
Class ConnectionSession

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.util.ConnectionSession
All Implemented Interfaces:
Connection
Direct Known Subclasses:
ClientConnectionSession, ServerConnectionSession

public abstract class ConnectionSession
extends java.lang.Object
implements Connection


Constructor Summary
ConnectionSession(Connection connection, SessionCloseListener sessionCloseListener)
           
 
Method Summary
 void close()
           
abstract  void deregisterChannel(ChannelContext context)
           
 ChannelContext findWSServiceContextByChannelId(int channelId)
           
 ChannelContext findWSServiceContextByURI(WSTCPURI wsTCPURI)
           
 java.lang.Object getAttribute(java.lang.String name)
           
abstract  int getChannelsAmount()
           
 Connection getConnection()
           
 ChannelContext getServiceChannelContext()
           
protected  void init()
           
 void onReadCompleted()
           
abstract  void registerChannel(ChannelContext context)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionSession

public ConnectionSession(Connection connection,
                         SessionCloseListener sessionCloseListener)
Method Detail

registerChannel

public abstract void registerChannel(@NotNull
                                     ChannelContext context)

deregisterChannel

public abstract void deregisterChannel(@NotNull
                                       ChannelContext context)

getChannelsAmount

public abstract int getChannelsAmount()

init

protected void init()

getAttribute

@Nullable
public java.lang.Object getAttribute(@NotNull
                                              java.lang.String name)

setAttribute

public void setAttribute(@NotNull
                         java.lang.String name,
                         @Nullable
                         java.lang.Object value)

onReadCompleted

public void onReadCompleted()

findWSServiceContextByURI

@Nullable
public ChannelContext findWSServiceContextByURI(@NotNull
                                                         WSTCPURI wsTCPURI)

findWSServiceContextByChannelId

@Nullable
public ChannelContext findWSServiceContextByChannelId(int channelId)

getServiceChannelContext

@NotNull
public ChannelContext getServiceChannelContext()

close

public void close()
Specified by:
close in interface Connection

getConnection

public Connection getConnection()