org.apache.maven.wagon.providers.http
Class LightweightHttpWagon

java.lang.Object
  extended byorg.apache.maven.wagon.AbstractWagon
      extended byorg.apache.maven.wagon.StreamWagon
          extended byorg.apache.maven.wagon.providers.http.LightweightHttpWagon
All Implemented Interfaces:
org.apache.maven.wagon.Wagon

public class LightweightHttpWagon
extends org.apache.maven.wagon.StreamWagon

Version:
$Id: LightweightHttpWagon.java 485098 2006-12-10 00:20:06Z joakime $
Author:
Michal Maczka

Nested Class Summary
 
Nested classes inherited from class org.apache.maven.wagon.Wagon
 
Field Summary
private  java.lang.String previousHttpProxyHost
           
private  java.lang.String previousHttpProxyPort
           
private  java.lang.String previousHttpsProxyHost
           
private  java.lang.String previousHttpsProxyPort
           
private  java.lang.String previousProxyExclusions
           
private  java.net.HttpURLConnection putConnection
           
private  boolean useCache
          Whether to use any proxy cache or not.
 
Fields inherited from class org.apache.maven.wagon.AbstractWagon
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport
 
Fields inherited from interface org.apache.maven.wagon.Wagon
ROLE
 
Constructor Summary
LightweightHttpWagon()
           
 
Method Summary
 void closeConnection()
           
 void fillInputData(org.apache.maven.wagon.InputData inputData)
           
 void fillOutputData(org.apache.maven.wagon.OutputData outputData)
           
 java.util.List getFileList(java.lang.String destinationDirectory)
           
 void openConnection()
           
 void put(java.io.File source, java.lang.String resourceName)
           
private  java.net.URL resolveResourceURL(org.apache.maven.wagon.resource.Resource resource)
           
 boolean resourceExists(java.lang.String resourceName)
           
 
Methods inherited from class org.apache.maven.wagon.StreamWagon
get, getIfNewer
 
Methods inherited from class org.apache.maven.wagon.AbstractWagon
addSessionListener, addTransferListener, connect, connect, connect, connect, createParentDirectories, createZip, disconnect, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getPath, getProxyInfo, getRepository, getSessionEventSupport, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, postProcessListeners, putDirectory, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setSessionEventSupport, setTransferEventSupport, supportsDirectoryCopy, transfer, transfer, transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.wagon.Wagon
 

Field Detail

previousProxyExclusions

private java.lang.String previousProxyExclusions

previousHttpProxyHost

private java.lang.String previousHttpProxyHost

previousHttpsProxyHost

private java.lang.String previousHttpsProxyHost

previousHttpProxyPort

private java.lang.String previousHttpProxyPort

previousHttpsProxyPort

private java.lang.String previousHttpsProxyPort

putConnection

private java.net.HttpURLConnection putConnection

useCache

private boolean useCache
Whether to use any proxy cache or not.

Constructor Detail

LightweightHttpWagon

public LightweightHttpWagon()
Method Detail

fillInputData

public void fillInputData(org.apache.maven.wagon.InputData inputData)
                   throws org.apache.maven.wagon.TransferFailedException,
                          org.apache.maven.wagon.ResourceDoesNotExistException
Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException

fillOutputData

public void fillOutputData(org.apache.maven.wagon.OutputData outputData)
                    throws org.apache.maven.wagon.TransferFailedException
Throws:
org.apache.maven.wagon.TransferFailedException

resolveResourceURL

private java.net.URL resolveResourceURL(org.apache.maven.wagon.resource.Resource resource)
                                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

put

public void put(java.io.File source,
                java.lang.String resourceName)
         throws org.apache.maven.wagon.TransferFailedException,
                org.apache.maven.wagon.ResourceDoesNotExistException,
                org.apache.maven.wagon.authorization.AuthorizationException
Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
org.apache.maven.wagon.authorization.AuthorizationException

openConnection

public void openConnection()
                    throws org.apache.maven.wagon.ConnectionException,
                           org.apache.maven.wagon.authentication.AuthenticationException
Throws:
org.apache.maven.wagon.ConnectionException
org.apache.maven.wagon.authentication.AuthenticationException

closeConnection

public void closeConnection()
                     throws org.apache.maven.wagon.ConnectionException
Throws:
org.apache.maven.wagon.ConnectionException

getFileList

public java.util.List getFileList(java.lang.String destinationDirectory)
                           throws org.apache.maven.wagon.TransferFailedException,
                                  org.apache.maven.wagon.ResourceDoesNotExistException,
                                  org.apache.maven.wagon.authorization.AuthorizationException
Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
org.apache.maven.wagon.authorization.AuthorizationException

resourceExists

public boolean resourceExists(java.lang.String resourceName)
                       throws org.apache.maven.wagon.TransferFailedException,
                              org.apache.maven.wagon.authorization.AuthorizationException
Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.authorization.AuthorizationException