sync4j.exchange.httptransport
Class WebDavHttpTransport

java.lang.Object
  extended bysync4j.exchange.httptransport.WebDavHttpTransport

public class WebDavHttpTransport
extends java.lang.Object

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


Constructor Summary
WebDavHttpTransport(java.lang.String host, int port)
           
 
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
 

Constructor Detail

WebDavHttpTransport

public WebDavHttpTransport(java.lang.String host,
                           int port)
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
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

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-2005 Sync4j.