org.springframework.aws.ivy
Class S3Utils

java.lang.Object
  extended by org.springframework.aws.ivy.S3Utils

public class S3Utils
extends java.lang.Object

A utility class for parsing full URIs into S3 component parts.

Author:
Ben Hale

Constructor Summary
S3Utils()
           
 
Method Summary
static org.jets3t.service.model.S3Bucket getBucket(java.lang.String uri)
          Parses the S3 bucket from a properly formed S3 URI.
static java.lang.String getKey(java.lang.String uri)
          Parses the S3 key name from a properly formed S3URI.
private static java.net.URI getUri(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S3Utils

public S3Utils()
Method Detail

getBucket

public static org.jets3t.service.model.S3Bucket getBucket(java.lang.String uri)
Parses the S3 bucket from a properly formed S3 URI.

Parameters:
uri - The URI to parse
Returns:
An S3 bucket for the given URI

getKey

public static java.lang.String getKey(java.lang.String uri)
Parses the S3 key name from a properly formed S3URI.

Parameters:
uri - The URI to parse
Returns:
An S3 key name for the given URI

getUri

private static java.net.URI getUri(java.lang.String uri)