org.openmobileis.synchro.openmsp.client.conduit
Interface SynchroConduit

All Known Implementing Classes:
ApacheHTTPClientSynchroConduit, HTTPFileClientSynchroConduit, HttpOpenMSPSynchroConduit, LocalOpenMSPSynchroConduit, MockSynchroConduit

public interface SynchroConduit

Title: OpenMobileIS project source
Description: Base interface that all synchronisation conduit must implements. A synchronisation conduit manage all physical connection process to the nomdLink server. The connexion protocol and OS native access is managed by the conexion conduit.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

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.
 

Method Detail

setSynchroPath

public void setSynchroPath(java.lang.String path)
define the path to the directory where synchro file are stored.

Parameters:
path -

setSynchroUserAgent

public void setSynchroUserAgent(java.lang.String userAgent)
Set the synchro user use in synchro connection.

Parameters:
userAgent -

isConnected

public boolean isConnected()
Return true if it exists a connexion to internet or desktop


sendRequest

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

Throws:
SynchroException
UserNotFoundException

openRAS

public void openRAS()
             throws SynchroException
Open RAS connection

Throws:
SynchroException

closeRAS

public void closeRAS()
              throws SynchroException
Close RAS connection

Returns:
Throws:
SynchroException

getRASConnectionNames

public java.lang.String getRASConnectionNames()
return a list of all disponible ras connection. Every connexion name is separated by a ; .


getIntallPath

public java.lang.String getIntallPath()
Return the directory path where synchronized file are stored.

Returns:


Copyright 2006 OpenMobileIS. All Rights Reserved.