Example usage for org.apache.commons.httpclient HttpURL HttpURL

List of usage examples for org.apache.commons.httpclient HttpURL HttpURL

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpURL HttpURL.

Prototype

public HttpURL(String paramString1, String paramString2, String paramString3, String paramString4,
            String paramString5) throws URIException 

Source Link

Usage

From source file:info.magnolia.cms.gui.dialog.DialogWebDAV.java

public void setDAVConnection() {
    WebdavResource wdr = null;// ww  w  .  j  a  v a  2s .co  m
    try {

        wdr = new WebdavResource(new HttpURL(this.getUser(), this.getPassword(), this.getHost(), this.getPort(),
                this.getDirectory()));

    } catch (Exception e) {
        log.error(e.getMessage(), e);
    }
    this.setDAVConnection(wdr);
}

From source file:org.apache.webdav.lib.WebdavFile.java

/**
 * @param pathname complete path to element
 * @param user user name/*from   w ww.j  a  v  a2s. c  om*/
 * @param pass password
 */
public WebdavFile(String pathname, String user, String pass) throws URIException {
    this(new HttpURL(user, pass, null, -1, pathname));
}

From source file:org.apache.webdav.lib.WebdavFile.java

/**
 * @param url file url//  w  w w  .  j av  a2 s  . c om
 * @param user user name
 * @param pass password
 */
public WebdavFile(URL url, String user, String pass) throws URIException {
    this(url.getProtocol().equals("https")
            ? new HttpsURL(user, pass, url.getHost(), url.getPort(), url.getPath())
            : new HttpURL(user, pass, url.getHost(), url.getPort(), url.getPath()));
}