sync4j.exchange.httptransport
Class WebDavHttpTransport
java.lang.Object
sync4j.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
|
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 |
log
protected java.util.logging.Logger log
numberCalls
public static int numberCalls
WebDavHttpTransport
public WebDavHttpTransport(java.lang.String host,
int port)
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 headercredentials
- the credentialrequest
- the requestencoding
- 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-2006 Sync4j.