|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.anzix.aws.maven.AbstractWagon
net.anzix.aws.maven.SimpleStorageServiceWagon
public class SimpleStorageServiceWagon
An implementation of the Maven Wagon interface that allows you to access the
Amazon S3 service. URLs that reference the S3 service should be in the form
of s3://bucket.name. As an example
s3://static.springframework.org would put files into the
static.springframework.org bucket on the S3 service.
username and passphrase
portions of the server authentication metadata for credentials.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.wagon.Wagon |
|---|
ROLE |
| Constructor Summary | |
|---|---|
SimpleStorageServiceWagon()
|
|
| Method Summary | |
|---|---|
protected void |
connectToRepository(org.apache.maven.wagon.repository.Repository source,
org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
org.apache.maven.wagon.proxy.ProxyInfoProvider proxyInfoProvider)
Subclass must implement with specific connection behavior |
protected void |
disconnectFromRepository()
Subclasses must implement with specific disconnection behavior |
protected boolean |
doesRemoteResourceExist(String resourceName)
Subclass must implement with specific detection behavior |
protected void |
getResource(String resourceName,
File destination,
net.anzix.aws.maven.TransferProgress progress)
Subclass must implement with specific get behavior |
protected boolean |
isRemoteResourceNewer(String resourceName,
long timestamp)
Subclass must implement with newer detection behavior |
protected List<String> |
listDirectory(String directory)
Subclass must implement with specific directory listing behavior |
protected void |
putResource(File source,
String destination,
net.anzix.aws.maven.TransferProgress progress)
Subclasses must implement with specific put behavior |
| Methods inherited from class net.anzix.aws.maven.AbstractWagon |
|---|
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getFileList, getIfNewer, getRepository, getSessionListeners, getTimeout, getTransferListeners, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, putDirectory, removeSessionListener, removeTransferListener, resourceExists, setInteractive, setTimeout, supportsDirectoryCopy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleStorageServiceWagon()
| Method Detail |
|---|
protected void connectToRepository(org.apache.maven.wagon.repository.Repository source,
org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
org.apache.maven.wagon.proxy.ProxyInfoProvider proxyInfoProvider)
throws org.apache.maven.wagon.authentication.AuthenticationException
AbstractWagon
connectToRepository in class AbstractWagonsource - The repository connection informationauthenticationInfo - Authentication information, if anyproxyInfoProvider - Proxy information, if any
org.apache.maven.wagon.authentication.AuthenticationExceptionprotected boolean doesRemoteResourceExist(String resourceName)
AbstractWagon
doesRemoteResourceExist in class AbstractWagonresourceName - The remote resource to detect
protected void disconnectFromRepository()
AbstractWagon
disconnectFromRepository in class AbstractWagon
protected void getResource(String resourceName,
File destination,
net.anzix.aws.maven.TransferProgress progress)
throws org.apache.maven.wagon.ResourceDoesNotExistException,
org.jets3t.service.ServiceException,
IOException
AbstractWagon
getResource in class AbstractWagonresourceName - The name of the remote resource to readdestination - The local file to write toprogress - A progress notifier for the upload. It must be used or
hashes will not be calculated correctly
org.apache.maven.wagon.ResourceDoesNotExistException
org.jets3t.service.ServiceException
IOException
protected boolean isRemoteResourceNewer(String resourceName,
long timestamp)
throws org.jets3t.service.ServiceException
AbstractWagon
isRemoteResourceNewer in class AbstractWagonresourceName - The name of the resource being comparedtimestamp - The timestamp to compare against
org.jets3t.service.ServiceException
protected List<String> listDirectory(String directory)
throws Exception
AbstractWagon
listDirectory in class AbstractWagondirectory - The directory to list files in
Exception - Implementations can throw any exception and it will be
handled by the base class
protected void putResource(File source,
String destination,
net.anzix.aws.maven.TransferProgress progress)
throws org.jets3t.service.ServiceException,
IOException
AbstractWagon
putResource in class AbstractWagonsource - The local source file to read fromdestination - The name of the remote resource to write toprogress - A progress notifier for the upload. It must be used or
hashes will not be calculated correctly
org.jets3t.service.ServiceException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||