| java.lang.Object org.skunk.dav.client.DAVConnection
DAVConnection | public class DAVConnection (Code) | | An http connection that can execute DAVMethod objects.
author: Jacob Smullyan |
DEFAULT_SOCKET_TIMEOUT | final public static int DEFAULT_SOCKET_TIMEOUT(Code) | | |
SOCKET_TIMEOUT_PROPERTY | final public static String SOCKET_TIMEOUT_PROPERTY(Code) | | |
DAVConnection | public DAVConnection(String host, int port)(Code) | | creates an DAVConnection over the http protocol
Parameters: host - the hostname Parameters: port - the port |
DAVConnection | public DAVConnection(String host, int port, boolean https)(Code) | | creates a DAVConnection
Parameters: host - the host to which to connect Parameters: port - the port on which to connect Parameters: https - whether to use https or http (https if true, http otherwise) |
closeConnection | public void closeConnection()(Code) | | closes the connection
|
convertToNameValuePairs | static NVPair[] convertToNameValuePairs(Map m)(Code) | | convert Maps to arrays of HTTPClient package's NVPair
|
getHost | public String getHost()(Code) | | returns the host
the host |
getPort | public int getPort()(Code) | | returns the port
the port |
getProtocol | public String getProtocol()(Code) | | returns the protocol, either "http" or "https"
the protocol |
getSocketTimeout | public int getSocketTimeout()(Code) | | |
getUsername | public String getUsername()(Code) | | returns the username
the username |
isClosed | public boolean isClosed()(Code) | | indicates whether the connection is closed or not
whether the connection is closed |
openConnection | public void openConnection()(Code) | | opens the connection
|
setAuthenticator | public void setAuthenticator(DAVAuthenticator authenticator)(Code) | | set a DAVAuthenticator for this connection.
the DAVAuthenticator is only being used for its requestPA() method (which provides
access to the output of Authenticator's protected requestPasswordAuthentication() method)
Parameters: authenticator - a DAVAuthenticator |
setAuthorization | public void setAuthorization(String authorization)(Code) | | sets an encoded authorization string
Parameters: authorization - the authorization string |
setSocketTimeout | public void setSocketTimeout(int socketTimeout)(Code) | | |
setUsername | public void setUsername(String username)(Code) | | sets the username
Parameters: username - the username |
|
|