Joram 5.2.5

org.objectweb.joram.mom.proxies.soap
Class SoapProxyService

java.lang.Object
  extended by org.objectweb.joram.mom.proxies.soap.SoapProxyService

public class SoapProxyService
extends java.lang.Object

The SoapProxyService class implements the SOAP service accessed by the JORAM clients using a SoapConnection for connecting to the MOM.


Field Summary
static org.objectweb.util.monolog.api.Logger logger
          logger
 
Constructor Summary
SoapProxyService()
           
 
Method Summary
 java.util.Hashtable getReply(java.lang.String name, int cnxId)
          Service method: returns a Hashtable containing an AbstractJmsReply reply or MOM messages destinated to a given connection context.
 void send(java.lang.String name, int cnxId, java.util.Hashtable h)
          Service method: passes a hashtable containing an AbstractJmsRequest client request or MOM messages to the proxy.
 int setConnection(java.util.Hashtable identityMap, int heartBeat)
          Service method: returns the identifier of a given user connection, or -1 if it is not a valid user of the SOAP proxy.
 void start(int serverId, java.lang.String serverName)
          Service method: called by the SOAP client for instantiating the SOAP service and starting the embedded JORAM server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
logger

Constructor Detail

SoapProxyService

public SoapProxyService()
Method Detail

start

public void start(int serverId,
                  java.lang.String serverName)
           throws java.lang.Exception
Service method: called by the SOAP client for instantiating the SOAP service and starting the embedded JORAM server.

Parameters:
serverId - Identifier of the embedded server.
serverName - Name of the embedded server.
Throws:
java.lang.Exception - If the embedded server could not start.

setConnection

public int setConnection(java.util.Hashtable identityMap,
                         int heartBeat)
                  throws java.lang.Exception
Service method: returns the identifier of a given user connection, or -1 if it is not a valid user of the SOAP proxy.

Parameters:
identityMap - Map of the user Identity.
heartBeat -
Returns:
connection identifier
Throws:
java.lang.Exception - If the proxy is not deployed.

send

public void send(java.lang.String name,
                 int cnxId,
                 java.util.Hashtable h)
          throws java.lang.Exception
Service method: passes a hashtable containing an AbstractJmsRequest client request or MOM messages to the proxy.

Parameters:
cnxId - The sending connection.
h - Hashtable containing a request or MOM messages.
Throws:
java.lang.Exception - If the connection has been closed.

getReply

public java.util.Hashtable getReply(java.lang.String name,
                                    int cnxId)
                             throws java.lang.Exception
Service method: returns a Hashtable containing an AbstractJmsReply reply or MOM messages destinated to a given connection context.

Parameters:
cnxId - The identifier of the requesting connection.
Throws:
java.lang.Exception - If the connection has been closed.

Joram 5.2.5

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved