Class MemWagon

java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.eclipse.aether.transport.wagon.MemWagon
All Implemented Interfaces:
org.apache.maven.wagon.Wagon, Configurable

public class MemWagon extends org.apache.maven.wagon.AbstractWagon implements Configurable
  • Field Summary

    Fields inherited from class org.apache.maven.wagon.AbstractWagon

    authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport

    Fields inherited from interface org.apache.maven.wagon.Wagon

    DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    fillInputData(org.apache.maven.wagon.InputData inputData)
     
    protected void
    fillOutputData(org.apache.maven.wagon.OutputData outputData)
     
    protected void
    finishPutTransfer(org.apache.maven.wagon.resource.Resource resource, InputStream input, OutputStream output)
     
    void
    get(String resourceName, File destination)
     
     
    boolean
    getIfNewer(String resourceName, File destination, long timestamp)
     
    protected InputStream
    getInputStream(org.apache.maven.wagon.resource.Resource resource)
     
    protected OutputStream
    getOutputStream(org.apache.maven.wagon.resource.Resource resource)
     
    protected void
     
    void
    put(File source, String resourceName)
     
    boolean
    resourceExists(String resourceName)
     
    void
     
    void
     

    Methods inherited from class org.apache.maven.wagon.AbstractWagon

    addSessionListener, 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, getBufferCapacityForTransfer, getFileList, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, 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, transfer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setConfiguration

      public void setConfiguration(Object config)
      Specified by:
      setConfiguration in interface Configurable
    • getConfiguration

      Specified by:
      getConfiguration in interface Configurable
    • setHttpHeaders

      public void setHttpHeaders(Properties httpHeaders)
    • openConnectionInternal

      protected void openConnectionInternal() throws org.apache.maven.wagon.ConnectionException, org.apache.maven.wagon.authentication.AuthenticationException
      Specified by:
      openConnectionInternal in class org.apache.maven.wagon.AbstractWagon
      Throws:
      org.apache.maven.wagon.ConnectionException
      org.apache.maven.wagon.authentication.AuthenticationException
    • closeConnection

      protected void closeConnection() throws org.apache.maven.wagon.ConnectionException
      Specified by:
      closeConnection in class org.apache.maven.wagon.AbstractWagon
      Throws:
      org.apache.maven.wagon.ConnectionException
    • resourceExists

      public boolean resourceExists(String resourceName) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.authorization.AuthorizationException
      Specified by:
      resourceExists in interface org.apache.maven.wagon.Wagon
      Overrides:
      resourceExists in class org.apache.maven.wagon.AbstractWagon
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.authorization.AuthorizationException
    • get

      public void get(String resourceName, File destination) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
      Specified by:
      get in interface org.apache.maven.wagon.Wagon
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.ResourceDoesNotExistException
      org.apache.maven.wagon.authorization.AuthorizationException
    • getIfNewer

      public boolean getIfNewer(String resourceName, File destination, long timestamp) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
      Specified by:
      getIfNewer in interface org.apache.maven.wagon.Wagon
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.ResourceDoesNotExistException
      org.apache.maven.wagon.authorization.AuthorizationException
    • getInputStream

      protected InputStream getInputStream(org.apache.maven.wagon.resource.Resource resource) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.ResourceDoesNotExistException
      org.apache.maven.wagon.authorization.AuthorizationException
    • fillInputData

      protected 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
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.ResourceDoesNotExistException
      org.apache.maven.wagon.authorization.AuthorizationException
    • put

      public void put(File source, String resourceName) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException, org.apache.maven.wagon.authorization.AuthorizationException
      Specified by:
      put in interface org.apache.maven.wagon.Wagon
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.ResourceDoesNotExistException
      org.apache.maven.wagon.authorization.AuthorizationException
    • getOutputStream

      protected OutputStream getOutputStream(org.apache.maven.wagon.resource.Resource resource) throws org.apache.maven.wagon.TransferFailedException
      Throws:
      org.apache.maven.wagon.TransferFailedException
    • fillOutputData

      protected void fillOutputData(org.apache.maven.wagon.OutputData outputData) throws org.apache.maven.wagon.TransferFailedException
      Throws:
      org.apache.maven.wagon.TransferFailedException
    • finishPutTransfer

      protected 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
      Overrides:
      finishPutTransfer in class org.apache.maven.wagon.AbstractWagon
      Throws:
      org.apache.maven.wagon.TransferFailedException
      org.apache.maven.wagon.authorization.AuthorizationException
      org.apache.maven.wagon.ResourceDoesNotExistException