org.openmobileis.synchro.openmsp.client.conduit
Class HttpOpenMSPSynchroConduit

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.conduit.HttpOpenMSPSynchroConduit
All Implemented Interfaces:
SynchroConduit

public class HttpOpenMSPSynchroConduit
extends java.lang.Object
implements SynchroConduit

Title: OpenMobileIS project source
Description: Synchronisation conduit use for debug purpose. Only generate the synchronisation request in a file sendOpenML.xml in the synchro directory. Use tu see if the send synchro message is correctly generated.

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

Constructor Summary
HttpOpenMSPSynchroConduit(java.lang.String synchroDirectoryPath, java.lang.String userAgent)
           
 
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 openMSPMessage, java.lang.String url)
          Send the request to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpOpenMSPSynchroConduit

public HttpOpenMSPSynchroConduit(java.lang.String synchroDirectoryPath,
                                 java.lang.String userAgent)
Method Detail

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

sendRequest

public java.lang.String sendRequest(ConduitParameter[] parameters,
                                    java.lang.String openMSPMessage,
                                    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

openRAS

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

Specified by:
openRAS in interface SynchroConduit
Throws:
SynchroException

closeRAS

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

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

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

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:


Copyright 2006 OpenMobileIS. All Rights Reserved.