com.funambol.util
Interface TransportAgent

All Known Implementing Classes:
HttpTransportAgent

public interface TransportAgent

Transport Agent interface. Implementing classes can use different media to communicate with the SyncML server.


Method Summary
 java.lang.String getResponseDate()
          Get the last response date
 java.lang.String sendMessage(java.lang.String request)
           
 java.lang.String sendMessage(java.lang.String request, java.lang.String charset)
           
 void setRequestURL(java.lang.String requestUrl)
          Set the request's url
 void setRetryOnWrite(int retries)
          Sets the number of writing tentatives for the the implementing transport agent
 

Method Detail

sendMessage

java.lang.String sendMessage(java.lang.String request,
                             java.lang.String charset)
                             throws CodedException
Parameters:
request - Message to send
charset - charset to use
Returns:
server response
Throws:
SyncException
CodedException

sendMessage

java.lang.String sendMessage(java.lang.String request)
                             throws CodedException
Parameters:
request - Message to send
Returns:
server response
Throws:
SyncException
CodedException

setRetryOnWrite

void setRetryOnWrite(int retries)
Sets the number of writing tentatives for the the implementing transport agent


setRequestURL

void setRequestURL(java.lang.String requestUrl)
Set the request's url

Parameters:
requestURL - the request's destination url

getResponseDate

java.lang.String getResponseDate()
Get the last response date

Returns:
the last response date (String format), if available, null otherwise


Copyright © 2001-2009 Funambol.