public abstract class AbstractHttpClientWagon extends StreamWagon
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.conn.ClientConnectionManager |
clientConnectionManager |
protected static org.apache.http.conn.ClientConnectionManager |
connectionManagerPooled |
protected static TimeZone |
GMT_TIME_ZONE |
protected static boolean |
IGNORE_SSL_VALIDITY_DATES
if using sslInsecure, certificate date issues will be ignored
disabled by default
|
protected static int |
SC_NULL |
protected static boolean |
sslAllowAll
If enabled, ssl hostname verifier does not check hostname.
|
protected static boolean |
sslInsecure
skip failure on certificate validity checks.
|
protected static boolean |
useClientManagerPooled
use http(s) connection pool mechanism.
|
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
Constructor and Description |
---|
AbstractHttpClientWagon() |
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getFileList, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopy
protected static final int SC_NULL
protected static final TimeZone GMT_TIME_ZONE
protected static org.apache.http.conn.ClientConnectionManager connectionManagerPooled
protected org.apache.http.conn.ClientConnectionManager clientConnectionManager
protected static boolean useClientManagerPooled
protected static boolean sslInsecure
protected static boolean IGNORE_SSL_VALIDITY_DATES
protected static boolean sslAllowAll
BrowserCompatHostnameVerifier
public AbstractHttpClientWagon()
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
public static void setConnectionManagerPooled(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
public static void setUseClientManagerPooled(boolean pooledClientManager)
public void openConnectionInternal()
openConnectionInternal
in class AbstractWagon
public void closeConnection()
closeConnection
in class StreamWagon
public void put(File source, String resourceName) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
put
in interface Wagon
put
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void putFromStream(InputStream stream, String destination, long contentLength, long lastModified) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putFromStream
in interface StreamingWagon
putFromStream
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
protected String calculateRelocatedUrl(HttpResponse response)
protected void mkdirs(String dirname) throws HttpException, IOException
HttpException
IOException
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists
in interface Wagon
resourceExists
in class AbstractWagon
TransferFailedException
AuthorizationException
protected HttpResponse execute(org.apache.http.client.methods.HttpUriRequest httpMethod) throws HttpException, IOException
HttpException
IOException
protected void setParameters(org.apache.http.client.methods.HttpUriRequest method)
protected void setHeaders(org.apache.http.client.methods.HttpUriRequest method)
protected String getUserAgent(org.apache.http.client.methods.HttpUriRequest method)
protected String getURL(Repository repository)
repository
- public HttpConfiguration getHttpConfiguration()
public void setHttpConfiguration(HttpConfiguration httpConfiguration)
public void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
fillInputData
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
protected void cleanupGetTransfer(Resource resource)
cleanupGetTransfer
in class AbstractWagon
public void putFromStream(InputStream stream, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putFromStream
in interface StreamingWagon
putFromStream
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
protected void putFromStream(InputStream stream, Resource resource) throws TransferFailedException, AuthorizationException, ResourceDoesNotExistException
putFromStream
in class StreamWagon
TransferFailedException
AuthorizationException
ResourceDoesNotExistException
public Properties getHttpHeaders()
public void setHttpHeaders(Properties httpHeaders)
public void fillOutputData(OutputData outputData) throws TransferFailedException
fillOutputData
in class StreamWagon
TransferFailedException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.