Package org.apache.commons.httpclient

Examples of org.apache.commons.httpclient.HttpURL


         if (property != null) {
            if (property.isCollection()) {
               if (!href.endsWith(SEPARATOR)) href = href + SEPARATOR;
               // the collection URL itself may be in the list of
               // response URL; filter them out to avoid recursion
               HttpURL sub = Utils.createHttpURL(collURL, href);
               if (!sub.equals(collURL)) {
                  subCollections.add(Utils.createHttpURL(collURL, href));
               }
            } else {
               addResource(href, false);
            }
View Full Code Here


   public Property getProperty(HttpURL baseUrl,
                               String relative,
                               PropertyName propertyName)
      throws URIException
   {
      HttpURL url = Utils.createHttpURL(baseUrl, relative);
      return getProperty(url.getURI(), propertyName);
   }
View Full Code Here

   }
  
   public ResourceTypeProperty getResourceType(HttpURL baseUrl, String relative)
      throws URIException
   {
      HttpURL url = Utils.createHttpURL(baseUrl, relative);
      return getResourceType(url.toString());
   }
View Full Code Here

        return sResult;
    }

    private static HttpURL uriToHttpURL(String uri) throws URIException {
        return uri.startsWith("https") ? new HttpsURL(uri)
                                       : new HttpURL(uri);
    }
View Full Code Here

      throws URIException
   {
      if (url.getPath().endsWith("/")) {
         return url;
      } else {
         HttpURL coll = Utils.createHttpURL(url, "");
         coll.setPath(url.getPath() + "/");
         return coll;
      }
   }
View Full Code Here

            }
            if (!itself) {
                String myURI = httpURL.getEscapedURI();
                char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
                                   + URIUtil.getName(href)).toCharArray();
                HttpURL childURL = httpURL instanceof HttpsURL
                                   ? new HttpsURL(childURI)
                                   : new HttpURL(childURI);
                childURL.setRawAuthority(httpURL.getRawAuthority());
                workingResource.setHttpURL(childURL, NOACTION, defaultDepth);
                workingResource.setExistence(true);
                workingResource.setOverwrite(getOverwrite());
            }
            workingResource.setDisplayName(displayName);
View Full Code Here

        (HttpURL httpURL, String additionalPath, int action, int depth)
        throws HttpException, IOException {

        setHttpURL(httpURL instanceof HttpsURL
                   ? new HttpsURL((HttpsURL) httpURL, additionalPath)
                   : new HttpURL(httpURL, additionalPath), action, depth);
    }
View Full Code Here

        (HttpURL httpURL, String additionalPath, int action)
        throws HttpException, IOException {

        setHttpURL(httpURL instanceof HttpsURL
                   ? new HttpsURL((HttpsURL) httpURL, additionalPath)
                   : new HttpURL(httpURL, additionalPath),
                   action, defaultDepth);
    }
View Full Code Here

    public void setHttpURL(HttpURL httpURL, String additionalPath)
        throws HttpException, IOException {

        setHttpURL(httpURL instanceof HttpsURL
                   ? new HttpsURL((HttpsURL) httpURL, additionalPath)
                   : new HttpURL(httpURL, additionalPath),
                   defaultAction, defaultDepth);
    }
View Full Code Here

    public void setHttpURL(String escapedHttpURL)
        throws HttpException, IOException {

        setHttpURL(escapedHttpURL.startsWith("https")
                   ? new HttpsURL(escapedHttpURL)
                   : new HttpURL(escapedHttpURL));
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.httpclient.HttpURL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.