public class S3Controller extends Object implements Controller
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_HEADER_NAME_ETAG |
static java.time.format.DateTimeFormatter |
ISO_INSTANT |
| Constructor and Description |
|---|
S3Controller() |
| Modifier and Type | Method and Description |
|---|---|
void |
bucket(WebContext ctx,
String bucketName)
Dispatching method handling bucket specific calls without content (HEAD and DELETE)
|
void |
bucket(WebContext ctx,
String bucketName,
InputStreamHandler in)
Dispatching method handling bucket specific calls with content (PUT)
|
void |
listBuckets(WebContext ctx)
GET a list of all buckets
|
void |
object(WebContext ctx,
String bucketName,
String objectId,
List<String> idList)
Dispatching method handling all object specific calls.
|
void |
object(WebContext ctx,
String bucketName,
String objectId,
List<String> idList,
InputStreamHandler in)
Dispatching method handling all object specific calls.
|
void |
onError(WebContext ctx,
HandledException error) |
public static final String HTTP_HEADER_NAME_ETAG
public static final java.time.format.DateTimeFormatter ISO_INSTANT
public void onError(WebContext ctx, HandledException error)
onError in interface Controllerpublic void listBuckets(WebContext ctx)
ctx - the context describing the current requestpublic void bucket(WebContext ctx, String bucketName)
ctx - the context describing the current requestbucketName - name of the bucket of interestpublic void bucket(WebContext ctx, String bucketName, InputStreamHandler in)
ctx - the context describing the current requestbucketName - name of the bucket of interestin - input stream with the requests contentpublic void object(WebContext ctx, String bucketName, String objectId, List<String> idList) throws Exception
ctx - the context describing the current requestbucketName - name of the bucket which contains the object (must exist)objectId - name of the object of interestidList - list of object names if the reequest was for multiple objectsException - in case of IO errors and there likepublic void object(WebContext ctx, String bucketName, String objectId, List<String> idList, InputStreamHandler in) throws Exception
ctx - the context describing the current requestbucketName - name of the bucket which contains the object (must exist)objectId - name of the object of interestidList - list of object names if the reequest was for multiple objectsin - input stream with the requests contentException - in case of IO errors and there likeCopyright © 2016. All rights reserved.