Class ServerConnectionSession
- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.util.ConnectionSession
-
- com.sun.xml.ws.transport.tcp.server.ServerConnectionSession
-
- All Implemented Interfaces:
Connection
public final class ServerConnectionSession extends ConnectionSession
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description ServerConnectionSession(Connection connection, SessionCloseListener<ServerConnectionSession> sessionCloseListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidderegisterChannel(int channelId)voidderegisterChannel(ChannelContext context)ChannelContextfindWSServiceContextByChannelId(int channelId)intgetChannelsAmount()intgetNextAvailChannelId()voidregisterChannel(ChannelContext context)-
Methods inherited from class com.sun.xml.ws.transport.tcp.util.ConnectionSession
findWSServiceContextByURI, getAttribute, getConnection, getServiceChannelContext, init, onReadCompleted, setAttribute
-
-
-
-
Constructor Detail
-
ServerConnectionSession
public ServerConnectionSession(Connection connection, SessionCloseListener<ServerConnectionSession> sessionCloseListener)
-
-
Method Detail
-
registerChannel
public void registerChannel(@NotNull ChannelContext context)- Specified by:
registerChannelin classConnectionSession
-
findWSServiceContextByChannelId
@Nullable public ChannelContext findWSServiceContextByChannelId(int channelId)
- Overrides:
findWSServiceContextByChannelIdin classConnectionSession
-
deregisterChannel
public void deregisterChannel(int channelId)
-
deregisterChannel
public void deregisterChannel(@NotNull ChannelContext context)- Specified by:
deregisterChannelin classConnectionSession
-
close
public void close()
- Specified by:
closein interfaceConnection- Overrides:
closein classConnectionSession
-
getChannelsAmount
public int getChannelsAmount()
- Specified by:
getChannelsAmountin classConnectionSession
-
getNextAvailChannelId
public int getNextAvailChannelId()
-
-