org.openmobileis.test.mock.synchro
Class MockSynchroConduit

java.lang.Object
  extended byorg.openmobileis.test.mock.synchro.MockSynchroConduit
All Implemented Interfaces:
SynchroConduit

public final class MockSynchroConduit
extends java.lang.Object
implements SynchroConduit

Author:
pdelrieu

Constructor Summary
MockSynchroConduit(java.lang.String synchroPath)
           
 
Method Summary
 void closeRAS()
          Close RAS connection
 java.lang.String getIntallPath()
          Return the directory path where synchronized file are stored.
 java.lang.String getRASConnectionNames()
          return a list of all disponible ras connection.
 boolean isConnected()
          Return true if it exists a connexion to internet or desktop
 void openRAS()
          Open RAS connection
 java.lang.String sendRequest(ConduitParameter[] parameters, java.lang.String request, java.lang.String url)
          Send the request to the server.
 void setSynchroPath(java.lang.String path)
          define the path to the directory where synchro file are stored.
 void setSynchroUserAgent(java.lang.String userAgent)
          Set the synchro user use in synchro connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSynchroConduit

public MockSynchroConduit(java.lang.String synchroPath)
Method Detail

closeRAS

public void closeRAS()
              throws SynchroException
Description copied from interface: SynchroConduit
Close RAS connection

Specified by:
closeRAS in interface SynchroConduit
Returns:
Throws:
SynchroException

getIntallPath

public java.lang.String getIntallPath()
Description copied from interface: SynchroConduit
Return the directory path where synchronized file are stored.

Specified by:
getIntallPath in interface SynchroConduit
Returns:

getRASConnectionNames

public java.lang.String getRASConnectionNames()
Description copied from interface: SynchroConduit
return a list of all disponible ras connection. Every connexion name is separated by a ; .

Specified by:
getRASConnectionNames in interface SynchroConduit

isConnected

public boolean isConnected()
Description copied from interface: SynchroConduit
Return true if it exists a connexion to internet or desktop

Specified by:
isConnected in interface SynchroConduit

openRAS

public void openRAS()
             throws SynchroException
Description copied from interface: SynchroConduit
Open RAS connection

Specified by:
openRAS in interface SynchroConduit
Throws:
SynchroException

sendRequest

public java.lang.String sendRequest(ConduitParameter[] parameters,
                                    java.lang.String request,
                                    java.lang.String url)
                             throws SynchroException,
                                    UserNotFoundException
Description copied from interface: SynchroConduit
Send the request to the server. return a string containing the server response.

Specified by:
sendRequest in interface SynchroConduit
Throws:
SynchroException
UserNotFoundException

setSynchroPath

public void setSynchroPath(java.lang.String path)
Description copied from interface: SynchroConduit
define the path to the directory where synchro file are stored.

Specified by:
setSynchroPath in interface SynchroConduit
Parameters:
path -

setSynchroUserAgent

public void setSynchroUserAgent(java.lang.String userAgent)
Description copied from interface: SynchroConduit
Set the synchro user use in synchro connection.

Specified by:
setSynchroUserAgent in interface SynchroConduit
Parameters:
userAgent -


Copyright 2006 OpenMobileIS. All Rights Reserved.