Codota Logo
RestUtils.encodeUrlPath
Code IndexAdd Codota to your IDE (free)

How to use
encodeUrlPath
method
in
org.jets3t.service.utils.RestUtils

Best Java code snippets using org.jets3t.service.utils.RestUtils.encodeUrlPath (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: net.java.dev.jets3t/jets3t

String pathRemainder = iconResourcePath.substring(firstSlashIndex);
URL baseUrl = this.getClass().getResource(firstPathComponent);
iconUrl = new URL(baseUrl.toString() + RestUtils.encodeUrlPath(pathRemainder, "/"));
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

String pathRemainder = iconResourcePath.substring(firstSlashIndex);
URL baseUrl = this.getClass().getResource(firstPathComponent);
iconUrl = new URL(baseUrl.toString() + RestUtils.encodeUrlPath(pathRemainder, "/"));
origin: iterate-ch/cyberduck

  /**
   * Generates a URL string that will return a Torrent file for an object in S3,
   * which file can be downloaded and run in a BitTorrent client.
   *
   * @param bucket the name of the bucket containing the object.
   * @param key    the name of the object.
   * @return a URL to a Torrent file representing the object.
   */
  public String create(final String bucket, final String key) {
    String s3Endpoint = endpoint.getHostname();
    String serviceEndpointVirtualPath = "";

    String bucketNameInPath =
        ServiceUtils.isBucketNameValidDNSName(bucket)
            ? ""
            : RestUtils.encodeUrlString(bucket) + "/";
    String urlPath =
        RestUtils.encodeUrlPath(serviceEndpointVirtualPath, "/")
            + "/" + bucketNameInPath
            + RestUtils.encodeUrlPath(key, "/");
    return "http://" + ServiceUtils.generateS3HostnameForBucket(
        bucket, false, s3Endpoint)
        + urlPath
        + "?torrent";
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

String sourceKey = RestUtils.encodeUrlPath(sourceBucketName + "/" + sourceObjectKey, "/");
origin: net.java.dev.jets3t/jets3t

String sourceKey = RestUtils.encodeUrlPath(sourceBucketName + "/" + sourceObjectKey, "/");
origin: net.java.dev.jets3t/jets3t

        : RestUtils.encodeUrlString(bucketName) + "/";
String urlPath =
    RestUtils.encodeUrlPath(serviceEndpointVirtualPath, "/")
        + "/" + bucketNameInPath
        + RestUtils.encodeUrlPath(objectKey, "/");
return "http://" + ServiceUtils.generateS3HostnameForBucket(
    bucketName, disableDnsBuckets, s3Endpoint)
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

        : RestUtils.encodeUrlString(bucketName) + "/";
String urlPath =
    RestUtils.encodeUrlPath(serviceEndpointVirtualPath, "/")
        + "/" + bucketNameInPath
        + RestUtils.encodeUrlPath(objectKey, "/");
return "http://" + ServiceUtils.generateS3HostnameForBucket(
    bucketName, disableDnsBuckets, s3Endpoint)
origin: net.java.dev.jets3t/jets3t

String sourceKey = RestUtils.encodeUrlPath("/" + sourceBucketName + "/" + sourceObjectKey, "/");
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

String sourceKey = RestUtils.encodeUrlPath("/" + sourceBucketName + "/" + sourceObjectKey, "/");
origin: net.java.dev.jets3t/jets3t

XMLBuilder items = paths.e("Items");
for(String objectPath : objectKeys) {
  String encodedPath = RestUtils.encodeUrlPath(objectPath, "/");
  if(!encodedPath.startsWith("/")) {
    encodedPath = "/" + encodedPath;
origin: net.java.dev.jets3t/jets3t

  uriPath = (objectKey != null ? RestUtils.encodeUrlPath(objectKey, "/") : "");
} else {
  uriPath = bucketName + (objectKey != null ? "/" + RestUtils.encodeUrlPath(objectKey, "/") : "");
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

XMLBuilder items = paths.e("Items");
for(String objectPath : objectKeys) {
  String encodedPath = RestUtils.encodeUrlPath(objectPath, "/");
  if(!encodedPath.startsWith("/")) {
    encodedPath = "/" + encodedPath;
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  uriPath = (objectKey != null ? RestUtils.encodeUrlPath(objectKey, "/") : "");
} else {
  uriPath = bucketName + (objectKey != null ? "/" + RestUtils.encodeUrlPath(objectKey, "/") : "");
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  resourceString += bucketName + "/";
resourceString += (objectKey != null ? RestUtils.encodeUrlPath(objectKey, "/") : "");
origin: net.java.dev.jets3t/jets3t

  resourceString += bucketName + "/";
resourceString += (objectKey != null ? RestUtils.encodeUrlPath(objectKey, "/") : "");
org.jets3t.service.utilsRestUtilsencodeUrlPath

Javadoc

Encodes a URL string but leaves a delimiter string unencoded. Spaces are encoded as "%20" instead of "+".

Popular methods of RestUtils

  • encodeUrlString
    Encodes a URL string, and ensures that spaces are encoded as "%20" instead of "+" to keep fussy web
  • calculateTimeAdjustmentOffset
    Calculates and returns a time offset value to reflect the time difference between your computer's cl
  • convertHeadersToMap
  • createDefaultHttpParams
    Default Http parameters got from the DefaultHttpClient implementation.
  • httpGetUrlAsString
  • initHttpConnection
    Initialises, or re-initialises, the underlying HttpConnectionManager and HttpClient objects a servic
  • initHttpProxy
  • makeServiceCanonicalString
    Calculate the canonical string for a REST/HTTP request to a storage service. When expires is non-nul

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now