org.kuali.maven.mojo.s3
Class S3Mojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.kuali.maven.mojo.s3.BaseMojo
org.kuali.maven.mojo.s3.S3Mojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- UpdateOriginBucketMojo
public abstract class S3Mojo
- extends BaseMojo
Abstract mojo containing S3 mojo essentials.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
S3Mojo
public S3Mojo()
getObjectMetadata
protected com.amazonaws.services.s3.model.ObjectMetadata getObjectMetadata(String location,
org.springframework.core.io.Resource resource)
throws IOException
- Throws:
IOException
getPutObjectRequest
protected com.amazonaws.services.s3.model.PutObjectRequest getPutObjectRequest(String location,
String key)
throws IOException
- Throws:
IOException
getPutObjectRequest
protected com.amazonaws.services.s3.model.PutObjectRequest getPutObjectRequest(String location)
throws IOException
- Throws:
IOException
getAuthenticationErrorMessage
protected String getAuthenticationErrorMessage()
updateCredentials
protected void updateCredentials()
validateCredentials
protected void validateCredentials()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getCredentials
protected com.amazonaws.auth.AWSCredentials getCredentials()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getAccessKeyId
public String getAccessKeyId()
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
getSecretAccessKey
public String getSecretAccessKey()
setSecretAccessKey
public void setSecretAccessKey(String secretAccessKey)
getBucket
public String getBucket()
setBucket
public void setBucket(String bucket)
getPrefix
public String getPrefix()
setPrefix
public void setPrefix(String prefix)
getDelimiter
public String getDelimiter()
setDelimiter
public void setDelimiter(String delimiter)
getMaxKeys
public Integer getMaxKeys()
setMaxKeys
public void setMaxKeys(Integer maxKeys)
getServerId
public String getServerId()
setServerId
public void setServerId(String serverId)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.