org.apache.maven.wagon.shared.http4
Class AbstractHttpClientWagon
java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.StreamWagon
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon
- All Implemented Interfaces:
- StreamingWagon, Wagon
public abstract class AbstractHttpClientWagon
- extends StreamWagon
- Author:
- Michal Maczka, James William Dumay
| Methods inherited from class org.apache.maven.wagon.AbstractWagon |
addSessionListener, addTransferListener, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getFileList, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putDirectory, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, 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 |
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getFileList, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopy |
SC_NULL
protected static final int SC_NULL
- See Also:
- Constant Field Values
GMT_TIME_ZONE
protected static final TimeZone GMT_TIME_ZONE
connectionManagerPooled
protected static org.apache.http.conn.ClientConnectionManager connectionManagerPooled
- Since:
- 2.0
clientConnectionManager
protected org.apache.http.conn.ClientConnectionManager clientConnectionManager
- Since:
- 2.0
useClientManagerPooled
protected static boolean useClientManagerPooled
- use http(s) connection pool mechanism.
enabled by default
- Since:
- 2.0
sslEasy
protected static boolean sslEasy
- skip failure on certificate validity checks.
enabled by default
- Since:
- 2.0
sslAllowAll
protected static boolean sslAllowAll
- ssl hostname verifier is allow all by default. Disable this will use a browser compat hostname verifier
enabled by default
- Since:
- 2.0
IGNORE_SSL_VALIDITY_DATES
protected static boolean IGNORE_SSL_VALIDITY_DATES
- if using sslEasy certificate date issues will be ignored
enabled by default
- Since:
- 2.0
AbstractHttpClientWagon
public AbstractHttpClientWagon()
getConnectionManager
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
setConnectionManagerPooled
public static void setConnectionManagerPooled(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
setUseClientManagerPooled
public static void setUseClientManagerPooled(boolean pooledClientManager)
openConnectionInternal
public void openConnectionInternal()
- Specified by:
openConnectionInternal in class AbstractWagon
closeConnection
public void closeConnection()
- Specified by:
closeConnection in class StreamWagon
put
public void put(File source,
String resourceName)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
put in interface Wagon- Overrides:
put in class StreamWagon
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
putFromStream
public void putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
putFromStream in interface StreamingWagon- Overrides:
putFromStream in class StreamWagon
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
mkdirs
protected void mkdirs(String dirname)
throws org.apache.http.HttpException,
IOException
- Throws:
org.apache.http.HttpException
IOException
resourceExists
public boolean resourceExists(String resourceName)
throws TransferFailedException,
AuthorizationException
- Specified by:
resourceExists in interface Wagon- Overrides:
resourceExists in class AbstractWagon
- Throws:
TransferFailedException
AuthorizationException
execute
protected org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest httpMethod)
throws org.apache.http.HttpException,
IOException
- Throws:
org.apache.http.HttpException
IOException
setParameters
protected void setParameters(org.apache.http.client.methods.HttpUriRequest method)
setHeaders
protected void setHeaders(org.apache.http.client.methods.HttpUriRequest method)
getUserAgent
protected String getUserAgent(org.apache.http.client.methods.HttpUriRequest method)
getURL
protected String getURL(Repository repository)
- getUrl
Implementors can override this to remove unwanted parts of the url such as role-hints
- Parameters:
repository -
- Returns:
getHttpConfiguration
public HttpConfiguration getHttpConfiguration()
setHttpConfiguration
public void setHttpConfiguration(HttpConfiguration httpConfiguration)
fillInputData
public void fillInputData(InputData inputData)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
fillInputData in class StreamWagon
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
cleanupGetTransfer
protected void cleanupGetTransfer(Resource resource)
- Overrides:
cleanupGetTransfer in class AbstractWagon
putFromStream
public void putFromStream(InputStream stream,
String destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
putFromStream in interface StreamingWagon- Overrides:
putFromStream in class StreamWagon
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
putFromStream
protected void putFromStream(InputStream stream,
Resource resource)
throws TransferFailedException,
AuthorizationException,
ResourceDoesNotExistException
- Overrides:
putFromStream in class StreamWagon
- Throws:
TransferFailedException
AuthorizationException
ResourceDoesNotExistException
getHttpHeaders
public Properties getHttpHeaders()
setHttpHeaders
public void setHttpHeaders(Properties httpHeaders)
fillOutputData
public void fillOutputData(OutputData outputData)
throws TransferFailedException
- Specified by:
fillOutputData in class StreamWagon
- Throws:
TransferFailedException
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.