|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.kuali.maven.mojo.s3.BaseMojo org.kuali.maven.mojo.s3.S3Mojo
public abstract class S3Mojo
Abstract mojo containing S3 mojo essentials.
Field Summary | |
---|---|
private String |
accessKeyId
Amazon AWS Access Key Id. |
private String |
bucket
The name of the bucket to update. |
private String |
delimiter
The delimiter used to organize keys into a hierarchy. |
private Integer |
maxKeys
Maximum number of keys to return per query. |
(package private) com.amazonaws.services.s3.internal.Mimetypes |
mimeTypes
Helper class for determining the mime types of objects. |
private String |
prefix
Only update the bucket hierarchy underneath this prefix. |
private String |
secretAccessKey
Amazon AWS Secret Access Key. |
private String |
serverId
This is the id of the server from settings.xml containing Amazon AWS credentials. |
Fields inherited from class org.kuali.maven.mojo.s3.BaseMojo |
---|
FS, SKIP_PACKAGING_TYPE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
S3Mojo()
|
Method Summary | |
---|---|
String |
getAccessKeyId()
|
protected String |
getAuthenticationErrorMessage()
|
String |
getBucket()
|
protected com.amazonaws.auth.AWSCredentials |
getCredentials()
|
String |
getDelimiter()
|
Integer |
getMaxKeys()
|
protected com.amazonaws.services.s3.model.ObjectMetadata |
getObjectMetadata(String location,
org.springframework.core.io.Resource resource)
|
String |
getPrefix()
|
protected com.amazonaws.services.s3.model.PutObjectRequest |
getPutObjectRequest(String location)
|
protected com.amazonaws.services.s3.model.PutObjectRequest |
getPutObjectRequest(String location,
String key)
|
String |
getSecretAccessKey()
|
String |
getServerId()
|
void |
setAccessKeyId(String accessKeyId)
|
void |
setBucket(String bucket)
|
void |
setDelimiter(String delimiter)
|
void |
setMaxKeys(Integer maxKeys)
|
void |
setPrefix(String prefix)
|
void |
setSecretAccessKey(String secretAccessKey)
|
void |
setServerId(String serverId)
|
protected void |
updateCredentials()
|
protected void |
validateCredentials()
|
Methods inherited from class org.kuali.maven.mojo.s3.BaseMojo |
---|
execute, executeMojo, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, skipMojo |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
com.amazonaws.services.s3.internal.Mimetypes mimeTypes
private String serverId
private String prefix
private String delimiter
private Integer maxKeys
private String accessKeyId
serverId
.
private String secretAccessKey
serverId
.
private String bucket
Constructor Detail |
---|
public S3Mojo()
Method Detail |
---|
protected com.amazonaws.services.s3.model.ObjectMetadata getObjectMetadata(String location, org.springframework.core.io.Resource resource) throws IOException
IOException
protected com.amazonaws.services.s3.model.PutObjectRequest getPutObjectRequest(String location, String key) throws IOException
IOException
protected com.amazonaws.services.s3.model.PutObjectRequest getPutObjectRequest(String location) throws IOException
IOException
protected String getAuthenticationErrorMessage()
protected void updateCredentials()
protected void validateCredentials() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected com.amazonaws.auth.AWSCredentials getCredentials() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public String getAccessKeyId()
public void setAccessKeyId(String accessKeyId)
public String getSecretAccessKey()
public void setSecretAccessKey(String secretAccessKey)
public String getBucket()
public void setBucket(String bucket)
public String getPrefix()
public void setPrefix(String prefix)
public String getDelimiter()
public void setDelimiter(String delimiter)
public Integer getMaxKeys()
public void setMaxKeys(Integer maxKeys)
public String getServerId()
public void setServerId(String serverId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |