|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.wagon.AbstractWagon org.apache.maven.wagon.StreamWagon org.apache.maven.wagon.shared.http.AbstractHttpClientWagon
public abstract class AbstractHttpClientWagon
Field Summary | |
---|---|
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 sslEasy certificate date issues will be ignored enabled by default |
protected static int |
SC_NULL
|
protected static boolean |
sslAllowAll
ssl hostname verifier is allow all by default. |
protected static boolean |
sslEasy
skip failure on certificate validity checks. |
protected static boolean |
useClientManagerPooled
use http(s) connection pool mechanism. |
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 | |
---|---|
AbstractHttpClientWagon()
|
Method Summary | |
---|---|
protected void |
cleanupGetTransfer(Resource resource)
|
void |
closeConnection()
|
protected org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest httpMethod)
|
void |
fillInputData(InputData inputData)
|
void |
fillOutputData(OutputData outputData)
|
org.apache.http.conn.ClientConnectionManager |
getConnectionManager()
|
HttpConfiguration |
getHttpConfiguration()
|
Properties |
getHttpHeaders()
|
protected String |
getURL(Repository repository)
getUrl Implementors can override this to remove unwanted parts of the url such as role-hints |
protected String |
getUserAgent(org.apache.http.client.methods.HttpUriRequest method)
|
protected void |
mkdirs(String dirname)
|
void |
openConnectionInternal()
|
void |
put(File source,
String resourceName)
Copy a file from local system to remote |
void |
putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified)
Copy from a local input stream to remote. |
boolean |
resourceExists(String resourceName)
Check if a remote resource exists |
static void |
setConnectionManagerPooled(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
|
protected void |
setHeaders(org.apache.http.client.methods.HttpUriRequest method)
|
void |
setHttpConfiguration(HttpConfiguration httpConfiguration)
|
void |
setHttpHeaders(Properties httpHeaders)
|
protected void |
setParameters(org.apache.http.client.methods.HttpUriRequest method)
|
static void |
setUseClientManagerPooled(boolean pooledClientManager)
|
Methods inherited from class org.apache.maven.wagon.StreamWagon |
---|
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, putFromStream |
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, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setTimeout, supportsDirectoryCopy |
Field Detail |
---|
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 sslEasy
protected static boolean sslAllowAll
protected static boolean IGNORE_SSL_VALIDITY_DATES
Constructor Detail |
---|
public AbstractHttpClientWagon()
Method Detail |
---|
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
Wagon
put
in interface Wagon
put
in class StreamWagon
source
- the local fileresourceName
- the remote destination
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void putFromStream(InputStream stream, String destination, long contentLength, long lastModified) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
StreamingWagon
putFromStream
in interface StreamingWagon
putFromStream
in class StreamWagon
stream
- the local streamdestination
- the remote destination
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
protected void mkdirs(String dirname) throws org.apache.http.HttpException, IOException
org.apache.http.HttpException
IOException
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
Wagon
resourceExists
in interface Wagon
resourceExists
in class AbstractWagon
TransferFailedException
- if there's an error trying to access the remote side
AuthorizationException
- if not authorized to verify the existence of the resourceprotected org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest httpMethod) throws org.apache.http.HttpException, IOException
org.apache.http.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 fillOutputData(OutputData outputData) throws TransferFailedException
fillOutputData
in class StreamWagon
TransferFailedException
public Properties getHttpHeaders()
public void setHttpHeaders(Properties httpHeaders)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |