org.apache.maven.wagon
public abstract class AbstractWagon extends Object implements Wagon
Version: $Id: AbstractWagon.java 480330 2006-11-29 01:55:47Z brett $
UNKNOWN: [BP] The proxy information should probably be validated to match the wagon type
Field Summary | |
---|---|
protected AuthenticationInfo | authenticationInfo |
protected static int | DEFAULT_BUFFER_SIZE |
protected boolean | interactive |
protected ProxyInfo | proxyInfo |
protected Repository | repository |
protected SessionEventSupport | sessionEventSupport |
protected TransferEventSupport | transferEventSupport |
Method Summary | |
---|---|
void | addSessionListener(SessionListener listener) |
void | addTransferListener(TransferListener listener) |
protected abstract void | closeConnection() |
void | connect(Repository repository) |
void | connect(Repository repository, ProxyInfo proxyInfo) |
void | connect(Repository repository, AuthenticationInfo authenticationInfo) |
void | connect(Repository repository, AuthenticationInfo authenticationInfo, ProxyInfo proxyInfo) |
protected void | createParentDirectories(File destination) |
void | createZip(List files, File zipName, File basedir) |
void | disconnect() |
protected void | fireGetCompleted(Resource resource, File localFile) |
protected void | fireGetInitiated(Resource resource, File localFile) |
protected void | fireGetStarted(Resource resource, File localFile) |
protected void | firePutCompleted(Resource resource, File localFile) |
protected void | firePutInitiated(Resource resource, File localFile) |
protected void | firePutStarted(Resource resource, File localFile) |
protected void | fireSessionConnectionRefused() |
protected void | fireSessionDebug(String message) |
protected void | fireSessionDisconnected() |
protected void | fireSessionDisconnecting() |
protected void | fireSessionError(Exception exception) |
protected void | fireSessionLoggedIn() |
protected void | fireSessionLoggedOff() |
protected void | fireSessionOpened() |
protected void | fireSessionOpening() |
protected void | fireTransferDebug(String message) |
protected void | fireTransferError(Resource resource, Exception e, int requestType) |
protected void | fireTransferProgress(TransferEvent transferEvent, byte[] buffer, int n) |
AuthenticationInfo | getAuthenticationInfo() |
List | getFileList(String destinationDirectory) |
protected static String | getPath(String basedir, String dir) |
ProxyInfo | getProxyInfo() |
Repository | getRepository() |
SessionEventSupport | getSessionEventSupport() |
protected void | getTransfer(Resource resource, File destination, InputStream input) |
protected void | getTransfer(Resource resource, File destination, InputStream input, boolean closeInput, int maxSize) |
TransferEventSupport | getTransferEventSupport() |
boolean | hasSessionListener(SessionListener listener) |
boolean | hasTransferListener(TransferListener listener) |
boolean | isInteractive() |
protected void | postProcessListeners(Resource resource, File source, int requestType)
This method is used if you are not streaming the transfer, to make sure any listeners dependent on state
(eg checksum observers) succeed. |
void | putDirectory(File sourceDirectory, String destinationDirectory) |
protected void | putTransfer(Resource resource, File source, OutputStream output, boolean closeOutput) |
void | removeSessionListener(SessionListener listener) |
void | removeTransferListener(TransferListener listener) |
boolean | resourceExists(String resourceName) |
void | setInteractive(boolean interactive) |
void | setSessionEventSupport(SessionEventSupport sessionEventSupport) |
void | setTransferEventSupport(TransferEventSupport transferEventSupport) |
boolean | supportsDirectoryCopy() |
protected void | transfer(Resource resource, File source, OutputStream output, boolean closeOutput)
Write from File to OutputStream
|
protected void | transfer(Resource resource, InputStream input, OutputStream output, int requestType)
Write from InputStream to OutputStream.
|
protected void | transfer(Resource resource, InputStream input, OutputStream output, int requestType, int maxSize)
Write from InputStream to OutputStream.
|
void | writeZipEntry(ZipOutputStream jar, File source, String entryName) |
Parameters: resource resource to transfer source file to read from output output stream closeOutput whether the output stream should be closed or not
Throws: TransferFailedException
Since: 1.0-beta-1
Parameters: resource resource to transfer input input stream output output stream requestType one of REQUEST_GET or REQUEST_PUT
Throws: IOException
Parameters: resource resource to transfer input input stream output output stream requestType one of REQUEST_GET or REQUEST_PUT maxSize size of the buffer
Throws: IOException