org.activemath.abstractcontent
Class MathWebBrokerWrapper

java.lang.Object
  extended by org.activemath.abstractcontent.MathWebBrokerWrapper

public class MathWebBrokerWrapper
extends Object

A facility class to centralize and call all methods offered by the mathweb object broker.


Field Summary
 org.apache.xmlrpc.XmlRpcClient connection
           
 org.apache.xmlrpc.XmlRpcClient connectionForOmega
           
static MathWebBrokerWrapper defaultInstance
           
static String defaultURL
           
static String defaultURLforOmega
           
protected static Logger thisLogCat
           
 String url
           
 String urlForOmega
           
 
Constructor Summary
MathWebBrokerWrapper(String url, String urlForOmega)
           
 
Method Summary
 String createService(String serviceName)
           
static String defaultCreateService(String serviceName)
           
static void defaultInit()
           
 String getILouiAppletURL(String proxyURL, String activityID)
           
 void initXmlRpcClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultInstance

public static MathWebBrokerWrapper defaultInstance

defaultURLforOmega

public static String defaultURLforOmega

defaultURL

public static String defaultURL

thisLogCat

protected static Logger thisLogCat

url

public final String url

urlForOmega

public final String urlForOmega

connection

public org.apache.xmlrpc.XmlRpcClient connection

connectionForOmega

public org.apache.xmlrpc.XmlRpcClient connectionForOmega
Constructor Detail

MathWebBrokerWrapper

public MathWebBrokerWrapper(String url,
                            String urlForOmega)
                     throws MalformedURLException
Throws:
MalformedURLException
Method Detail

defaultInit

public static void defaultInit()
                        throws MalformedURLException
Throws:
MalformedURLException

initXmlRpcClient

public void initXmlRpcClient()
                      throws MalformedURLException
Throws:
MalformedURLException

defaultCreateService

public static String defaultCreateService(String serviceName)
                                   throws IOException,
                                          org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

createService

public String createService(String serviceName)
                     throws IOException,
                            org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

getILouiAppletURL

public String getILouiAppletURL(String proxyURL,
                                String activityID)
                         throws org.apache.xmlrpc.XmlRpcException,
                                IOException
Throws:
org.apache.xmlrpc.XmlRpcException
IOException