com.amazonaws.s3.S3Constants Maven / Gradle / Ivy
/*
* This software code is made available "AS IS" without warranties of any
* kind. You may copy, display, modify and redistribute the software
* code either by itself or as incorporated into your code; provided that
* you do not remove any proprietary notices. Your use of this software
* code is at your own risk and you waive any claim against Amazon
* Web Services LLC or its affiliates with respect to your use of
* this software code. (c) Amazon Web Services LLC or its
* affiliates.
*/
package com.amazonaws.s3;
import java.util.TimeZone;
public class S3Constants {
public static final TimeZone GMT = TimeZone.getTimeZone( "GMT" );
protected static final String BUCKET_NAME = "__BUCKET_NAME__";
protected static final String OBJECT_KEY = "__OBJECT_KEY__";
protected static final String DATA = "__DATA__";
protected static final String ACCESS_KEY_ID = "__ACCESS_KEY_ID__";
protected static final String TIMESTAMP = "__TIMESTAMP__";
protected static final String SIGNATURE = "__SIGNATURE__";
protected static final String CONTENT_LENGTH = "__CONTENT_LENGTH__";
protected static final String SOAP_START = "";
protected static final String SOAP_END = " ";
protected static final String LIST_MY_BUCKETS = SOAP_START +
"" +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String CREATE_BUCKET = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String DELETE_BUCKET = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String LIST_BUCKET = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String PUT_OBJECT = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__OBJECT_KEY__ " +
"__DATA__" +
"__CONTENT_LENGTH__ " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String GET_OBJECT = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__OBJECT_KEY__ " +
"false " +
"true " +
"true " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
protected static final String DELETE_OBJECT = SOAP_START +
"" +
"__BUCKET_NAME__ " +
"__OBJECT_KEY__ " +
"__ACCESS_KEY_ID__ " +
"__TIMESTAMP__ " +
"__SIGNATURE__ " +
" " + SOAP_END;
}