public abstract class BaseS3
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_KEY |
static java.lang.String |
ACCESS_SECRET |
protected java.lang.String |
accessKey |
static java.lang.String |
AWS_ACCESS_KEY |
static java.lang.String |
AWS_SECRET_KEY |
protected com.amazonaws.auth.AWSCredentials |
creds |
protected java.lang.String |
secretKey |
protected static long |
serialVersionUID |
Constructor and Description |
---|
BaseS3() |
BaseS3(java.io.File file) |
BaseS3(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
protected void |
findCreds() |
com.amazonaws.services.s3.AmazonS3 |
getClient() |
com.amazonaws.auth.AWSCredentials |
getCreds() |
com.amazonaws.services.ec2.AmazonEC2 |
getEc2() |
void |
setCreds(com.amazonaws.auth.AWSCredentials creds) |
protected static final long serialVersionUID
protected java.lang.String accessKey
protected java.lang.String secretKey
protected com.amazonaws.auth.AWSCredentials creds
public static final java.lang.String ACCESS_KEY
public static final java.lang.String ACCESS_SECRET
public static final java.lang.String AWS_ACCESS_KEY
public static final java.lang.String AWS_SECRET_KEY
public BaseS3()
public BaseS3(java.io.File file) throws java.lang.Exception
java.lang.Exception
public BaseS3(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
protected void findCreds()
public com.amazonaws.auth.AWSCredentials getCreds()
public void setCreds(com.amazonaws.auth.AWSCredentials creds)
public com.amazonaws.services.s3.AmazonS3 getClient()
public com.amazonaws.services.ec2.AmazonEC2 getEc2()