com.sun.xml.ws.transport.tcp.server
Class IncomeMessageProcessor

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.server.IncomeMessageProcessor
All Implemented Interfaces:
SessionCloseListener

public final class IncomeMessageProcessor
extends java.lang.Object
implements SessionCloseListener


Method Summary
static IncomeMessageProcessor getMessageProcessorForPort(int port)
           
 void notifyClosed(java.nio.channels.SocketChannel socketChannel)
          Close callback method Will be called by NIO framework, when it will decide to close connection
 void notifySessionClose(ConnectionSession connectionSession)
          Close callback method Will be called by Connection.close() to let IncomeMessageProcessor remove the correspondent session from Map
 void process(java.nio.ByteBuffer messageBuffer, java.nio.channels.SocketChannel socketChannel)
           
static IncomeMessageProcessor registerListener(int port, TCPMessageListener listener, java.util.Properties properties)
           
static void releaseListener(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerListener

public static IncomeMessageProcessor registerListener(int port,
                                                      @NotNull
                                                      TCPMessageListener listener,
                                                      @NotNull
                                                      java.util.Properties properties)

releaseListener

public static void releaseListener(int port)

getMessageProcessorForPort

@Nullable
public static IncomeMessageProcessor getMessageProcessorForPort(int port)

process

public void process(@NotNull
                    java.nio.ByteBuffer messageBuffer,
                    @NotNull
                    java.nio.channels.SocketChannel socketChannel)
             throws java.io.IOException
Throws:
java.io.IOException

notifyClosed

public void notifyClosed(@NotNull
                         java.nio.channels.SocketChannel socketChannel)
Close callback method Will be called by NIO framework, when it will decide to close connection


notifySessionClose

public void notifySessionClose(@NotNull
                               ConnectionSession connectionSession)
Close callback method Will be called by Connection.close() to let IncomeMessageProcessor remove the correspondent session from Map

Specified by:
notifySessionClose in interface SessionCloseListener