public class LightweightHttpWagon extends org.apache.maven.wagon.StreamWagon
HttpURLConnection
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_REDIRECTS |
| Constructor and Description |
|---|
LightweightHttpWagon() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
void |
fillInputData(org.apache.maven.wagon.InputData inputData) |
void |
fillOutputData(org.apache.maven.wagon.OutputData outputData) |
protected void |
finishPutTransfer(org.apache.maven.wagon.resource.Resource resource,
InputStream input,
OutputStream output) |
LightweightHttpWagonAuthenticator |
getAuthenticator() |
List<String> |
getFileList(String destinationDirectory) |
Properties |
getHttpHeaders() |
SocketAddress |
getSocketAddress(org.apache.maven.wagon.proxy.ProxyInfo proxyInfo) |
boolean |
isUseCache() |
protected void |
openConnectionInternal() |
PasswordAuthentication |
requestProxyAuthentication() |
PasswordAuthentication |
requestServerAuthentication() |
boolean |
resourceExists(String resourceName) |
void |
setAuthenticator(LightweightHttpWagonAuthenticator authenticator) |
void |
setHttpHeaders(Properties httpHeaders) |
void |
setPreemptiveAuthentication(boolean preemptiveAuthentication) |
void |
setUseCache(boolean useCache) |
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStreamaddSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, 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, transferclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopypublic static final int MAX_REDIRECTS
public LightweightHttpWagon()
public void fillInputData(org.apache.maven.wagon.InputData inputData) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
fillInputData in class org.apache.maven.wagon.StreamWagonorg.apache.maven.wagon.TransferFailedExceptionorg.apache.maven.wagon.ResourceDoesNotExistExceptionorg.apache.maven.wagon.authorization.AuthorizationExceptionpublic void fillOutputData(org.apache.maven.wagon.OutputData outputData) throws org.apache.maven.wagon.TransferFailedException
fillOutputData in class org.apache.maven.wagon.StreamWagonorg.apache.maven.wagon.TransferFailedExceptionprotected void finishPutTransfer(org.apache.maven.wagon.resource.Resource resource, InputStream input, OutputStream output) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.authorization.AuthorizationException, org.apache.maven.wagon.ResourceDoesNotExistException
finishPutTransfer in class org.apache.maven.wagon.AbstractWagonorg.apache.maven.wagon.TransferFailedExceptionorg.apache.maven.wagon.authorization.AuthorizationExceptionorg.apache.maven.wagon.ResourceDoesNotExistExceptionprotected void openConnectionInternal() throws org.apache.maven.wagon.ConnectionException, org.apache.maven.wagon.authentication.AuthenticationException
openConnectionInternal in class org.apache.maven.wagon.AbstractWagonorg.apache.maven.wagon.ConnectionExceptionorg.apache.maven.wagon.authentication.AuthenticationExceptionpublic PasswordAuthentication requestProxyAuthentication()
public PasswordAuthentication requestServerAuthentication()
public SocketAddress getSocketAddress(org.apache.maven.wagon.proxy.ProxyInfo proxyInfo)
public void closeConnection() throws org.apache.maven.wagon.ConnectionException
closeConnection in class org.apache.maven.wagon.StreamWagonorg.apache.maven.wagon.ConnectionExceptionpublic List<String> getFileList(String destinationDirectory) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
getFileList in interface org.apache.maven.wagon.WagongetFileList in class org.apache.maven.wagon.AbstractWagonorg.apache.maven.wagon.TransferFailedExceptionorg.apache.maven.wagon.ResourceDoesNotExistExceptionorg.apache.maven.wagon.authorization.AuthorizationExceptionpublic boolean resourceExists(String resourceName) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.authorization.AuthorizationException
resourceExists in interface org.apache.maven.wagon.WagonresourceExists in class org.apache.maven.wagon.AbstractWagonorg.apache.maven.wagon.TransferFailedExceptionorg.apache.maven.wagon.authorization.AuthorizationExceptionpublic boolean isUseCache()
public void setUseCache(boolean useCache)
public Properties getHttpHeaders()
public void setHttpHeaders(Properties httpHeaders)
public void setPreemptiveAuthentication(boolean preemptiveAuthentication)
public LightweightHttpWagonAuthenticator getAuthenticator()
public void setAuthenticator(LightweightHttpWagonAuthenticator authenticator)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.