com.funambol.exchange.httptransport
Class WebDavHttpTransport

java.lang.Object
  extended bycom.funambol.exchange.httptransport.WebDavHttpTransport

public class WebDavHttpTransport
extends java.lang.Object

This class provide methods to access exchange server datastore by socket connection


Field Summary
protected  java.util.logging.Logger log
           
static int numberCalls
           
 
Constructor Summary
WebDavHttpTransport(java.lang.String host, int port, java.lang.String exchangeHost)
           
 
Method Summary
protected  byte[] readContent(java.io.InputStream in)
          Reads the content from the inputstream.
 java.lang.String sendRequest(java.lang.String webDavCommand, java.lang.String credentials, java.lang.String request, java.lang.String encoding)
          Send request to exchange server and get response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected java.util.logging.Logger log

numberCalls

public static int numberCalls
Constructor Detail

WebDavHttpTransport

public WebDavHttpTransport(java.lang.String host,
                           int port,
                           java.lang.String exchangeHost)
Method Detail

sendRequest

public java.lang.String sendRequest(java.lang.String webDavCommand,
                                    java.lang.String credentials,
                                    java.lang.String request,
                                    java.lang.String encoding)
                             throws java.io.IOException,
                                    java.security.KeyStoreException
Send request to exchange server and get response.

Parameters:
webDavCommand - the first row of the header
credentials - the credential
request - the request
encoding - the encoding to use to encode the request and the response
Returns:
response
Throws:
java.io.IOException
java.security.KeyStoreException

readContent

protected byte[] readContent(java.io.InputStream in)
                      throws java.io.IOException
Reads the content from the inputstream.

Parameters:
in - the request InputStream
Throws:
java.io.IOException - in case of errors


Copyright © 2003-2006 Funambol.