Class ConnectionSession
- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.util.ConnectionSession
-
- All Implemented Interfaces:
Connection
- Direct Known Subclasses:
ClientConnectionSession,ServerConnectionSession
public abstract class ConnectionSession extends Object implements Connection
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description ConnectionSession(Connection connection, SessionCloseListener sessionCloseListener)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()abstract voidderegisterChannel(ChannelContext context)ChannelContextfindWSServiceContextByChannelId(int channelId)ChannelContextfindWSServiceContextByURI(WSTCPURI wsTCPURI)ObjectgetAttribute(String name)abstract intgetChannelsAmount()ConnectiongetConnection()ChannelContextgetServiceChannelContext()protected voidinit()voidonReadCompleted()abstract voidregisterChannel(ChannelContext context)voidsetAttribute(String name, Object value)
-
-
-
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()
-
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:
closein interfaceConnection
-
getConnection
public Connection getConnection()
-
-