Class IncomeMessageProcessor
java.lang.Object
com.sun.xml.ws.transport.tcp.server.IncomeMessageProcessor
- All Implemented Interfaces:
SessionCloseListener
- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionstatic IncomeMessageProcessorgetMessageProcessorForPort(int port) voidnotifyClosed(SocketChannel socketChannel) Close callback method Will be called by NIO framework, when it will decide to close connectionvoidnotifySessionClose(ConnectionSession connectionSession) Close callback method Will be called by Connection.close() to let IncomeMessageProcessor remove the correspondent session from Mapvoidprocess(ByteBuffer messageBuffer, SocketChannel socketChannel) static IncomeMessageProcessorregisterListener(int port, TCPMessageListener listener, Properties properties) static voidreleaseListener(int port)
-
Method Details
-
registerListener
public static IncomeMessageProcessor registerListener(int port, @NotNull TCPMessageListener listener, @NotNull Properties properties) -
releaseListener
public static void releaseListener(int port) -
getMessageProcessorForPort
-
process
public void process(@NotNull ByteBuffer messageBuffer, @NotNull SocketChannel socketChannel) throws IOException - Throws:
IOException
-
notifyClosed
Close callback method Will be called by NIO framework, when it will decide to close connection -
notifySessionClose
Close callback method Will be called by Connection.close() to let IncomeMessageProcessor remove the correspondent session from Map- Specified by:
notifySessionClosein interfaceSessionCloseListener
-