net.noderunner.amazon.s3
Class CallingFormat
java.lang.Object
net.noderunner.amazon.s3.CallingFormat
public abstract class CallingFormat
- extends Object
Calling formats.
- Author:
- Elias Ross
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
CallingFormat
public CallingFormat()
supportsLocatedBuckets
public abstract boolean supportsLocatedBuckets()
getEndpoint
public abstract String getEndpoint(String server,
int port,
Bucket bucket)
getPathBase
public abstract String getPathBase(Bucket bucket,
String key)
getURI
public abstract org.apache.commons.httpclient.URI getURI(boolean isSecure,
String server,
int port,
Bucket bucket,
String key,
Map<String,String> pathArgs)
throws org.apache.commons.httpclient.URIException
- Throws:
org.apache.commons.httpclient.URIException
Copyright © 2011. All Rights Reserved.