net.noderunner.amazon.s3
Class CallingFormat

java.lang.Object
  extended by net.noderunner.amazon.s3.CallingFormat

public abstract class CallingFormat
extends java.lang.Object

Calling formats.

Author:
Elias Ross

Field Summary
static CallingFormat PATH
          Call by using a path.
static CallingFormat SUBDOMAIN
          Call by using a sub-domain of the bucket name.
static CallingFormat VANITY
          Call using a "vanity" or user-provided hostname.
 
Constructor Summary
CallingFormat()
           
 
Method Summary
abstract  java.lang.String getEndpoint(java.lang.String server, int port, Bucket bucket)
           
abstract  java.lang.String getPathBase(Bucket bucket, java.lang.String key)
           
abstract  org.apache.commons.httpclient.URI getURI(boolean isSecure, java.lang.String server, int port, Bucket bucket, java.lang.String key, java.util.Map<java.lang.String,java.lang.String> pathArgs)
           
abstract  boolean supportsLocatedBuckets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH

public static final CallingFormat PATH
Call by using a path.


SUBDOMAIN

public static final CallingFormat SUBDOMAIN
Call by using a sub-domain of the bucket name.


VANITY

public static final CallingFormat VANITY
Call using a "vanity" or user-provided hostname. The bucket name is in fact the domain name.

Constructor Detail

CallingFormat

public CallingFormat()
Method Detail

supportsLocatedBuckets

public abstract boolean supportsLocatedBuckets()

getEndpoint

public abstract java.lang.String getEndpoint(java.lang.String server,
                                             int port,
                                             Bucket bucket)

getPathBase

public abstract java.lang.String getPathBase(Bucket bucket,
                                             java.lang.String key)

getURI

public abstract org.apache.commons.httpclient.URI getURI(boolean isSecure,
                                                         java.lang.String server,
                                                         int port,
                                                         Bucket bucket,
                                                         java.lang.String key,
                                                         java.util.Map<java.lang.String,java.lang.String> pathArgs)
                                                  throws org.apache.commons.httpclient.URIException
Throws:
org.apache.commons.httpclient.URIException


Copyright © 2010. All Rights Reserved.