Bus

org.topcased.web.server.SOAP
Class SOAPServer

java.lang.Object
  extended by org.topcased.web.server.SOAP.SOAPServer
All Implemented Interfaces:
SOAPCallback

public class SOAPServer
extends java.lang.Object
implements SOAPCallback

The SOAP Server is a SOAP message manager.
It receives SOAP message from a soap listener and launch a new thread to process it.


Nested Class Summary
 class SOAPServer.MessageProcessor
          Process the SOAPMessage in a different thread of the soap server : extract datas from the message and call the external service.
 
Constructor Summary
SOAPServer(int port_)
          Create a SOAP Server listening on port port_.
 
Method Summary
protected  SOAPSenderImpl initSoapResponseSender(java.nio.channels.SelectionKey key)
          Init the selection key (ip + port) on wich the response of the soap message will be sent.
 void onMessage(SOAPMessage requestMsg_, java.nio.channels.SelectionKey key)
           
 void setExternalServiceHandler(ExternalServiceHandler externalServiceHandler_)
          Set external service handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPServer

public SOAPServer(int port_)
Create a SOAP Server listening on port port_.

Parameters:
port_ - - socket port listened by SOAP Server.
Method Detail

setExternalServiceHandler

public void setExternalServiceHandler(ExternalServiceHandler externalServiceHandler_)
Set external service handler.

Parameters:
externalServiceHandler_ - - the external service handler.

initSoapResponseSender

protected SOAPSenderImpl initSoapResponseSender(java.nio.channels.SelectionKey key)
Init the selection key (ip + port) on wich the response of the soap message will be sent.

Parameters:
key - - init the selection key on the soap sender.
Returns:
- A SOAPSenderImpl which assume the network part of the response to the soap message.

onMessage

public void onMessage(SOAPMessage requestMsg_,
                      java.nio.channels.SelectionKey key)
Specified by:
onMessage in interface SOAPCallback
See Also:
SOAPCallback.onMessage(SOAPMessage, SelectionKey)

Bus

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.