com.funambol.email.inboxlistener.engine
Class WSTools

java.lang.Object
  extended by com.funambol.email.inboxlistener.engine.WSTools

public class WSTools
extends java.lang.Object

This class groups some utility methods for WS invoking and handling


Field Summary
static java.lang.String FAULT_DATA_STORE
           
static java.lang.String FAULT_UNAUTHORIZED
           
protected  com.funambol.framework.logging.FunambolLogger log
           
 
Constructor Summary
WSTools(java.lang.String endpoint, java.lang.String username, java.lang.String password)
          Creates a new WSTools with the given endpoint
 
Method Summary
 java.lang.Object invoke(java.lang.String methodName, java.lang.Object[] args)
          Invokes the given WS method with the given objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected com.funambol.framework.logging.FunambolLogger log

FAULT_UNAUTHORIZED

public static final java.lang.String FAULT_UNAUTHORIZED
See Also:
Constant Field Values

FAULT_DATA_STORE

public static final java.lang.String FAULT_DATA_STORE
See Also:
Constant Field Values
Constructor Detail

WSTools

public WSTools(java.lang.String endpoint,
               java.lang.String username,
               java.lang.String password)
        throws java.lang.Exception
Creates a new WSTools with the given endpoint

Parameters:
endpoint - the endpoint
Throws:
java.lang.Exception
Method Detail

invoke

public java.lang.Object invoke(java.lang.String methodName,
                               java.lang.Object[] args)
                        throws java.lang.Exception
Invokes the given WS method with the given objects.

Parameters:
methodName - the method to invoke
args - the call arguments
Returns:
the object returned by the invoked method
Throws:
AdminExcheption - in case of SyncAdmin or administration errors
java.lang.Exception


Copyright © 2005-2006 Funambol.