org.apache.maven.wagon.providers.http
public class HttpWagon extends AbstractWagon
Version: $Id: HttpWagon.java 485099 2006-12-10 00:20:09Z joakime $
Field Summary | |
---|---|
HttpClient | client |
static int | DEFAULT_NUMBER_OF_ATTEMPTS |
static TimeZone | GMT_TIME_ZONE |
int | numberOfAttempts |
static int | SC_NULL |
Method Summary | |
---|---|
void | closeConnection() |
void | get(String resourceName, File destination) |
boolean | get(String resourceName, File destination, long timestamp) |
List | getFileList(String destinationDirectory) |
boolean | getIfNewer(String resourceName, File destination, long timestamp) |
int | getNumberOfAttempts() |
void | openConnection() |
void | put(File source, String resourceName) |
boolean | resourceExists(String resourceName) |
void | setNumberOfAttempts(int numberOfAttempts) |
Parameters: resourceName destination timestamp the timestamp to check against, only downloading if newer. If 0
, always download
Returns: true
if newer version was downloaded, false
otherwise.
Throws: TransferFailedException ResourceDoesNotExistException AuthorizationException