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

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

public class HTTPFileClientSynchroConduit
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.

Version:
1.0. Use the Apache library HTTPClient
Author:
Manuel Gomez-Rosado

Constructor Summary
HTTPFileClientSynchroConduit()
           
 
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.
 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

HTTPFileClientSynchroConduit

public HTTPFileClientSynchroConduit()
Method Detail

setSynchroPath

public void setSynchroPath(java.lang.String path)
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)
Set the synchro user use in synchro connection.

Specified by:
setSynchroUserAgent in interface SynchroConduit
Parameters:
userAgent -

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.