ProxyInfo proxyInfo = prepareProxyInfo(context.getIndexUpdateUrl()); ResourceFetcher resourceFetcher = new WagonHelper.WagonFetcher(httpWagon, listener, null, proxyInfo);
logError( msg, e ); IOException ioException = new IOException( msg ); ioException.initCause( e ); logError( msg, e ); FileNotFoundException fileNotFoundException = new FileNotFoundException( msg ); fileNotFoundException.initCause( e ); logError( msg, e ); IOException ioException = new IOException( msg + "; " + e.getMessage() ); ioException.initCause( e );
public InputStream retrieve( String name ) throws IOException, FileNotFoundException { final File target = File.createTempFile( name, "" ); target.deleteOnExit(); retrieve( name, target ); return new FileInputStream( target ) { @Override public void close() throws IOException { super.close(); target.delete(); } }; }
ResourceFetcher resourceFetcher = new WagonHelper.WagonFetcher( httpWagon, listener, null, null );
ResourceFetcher fetcher = new WagonHelper.WagonFetcher(wagon, listener, wagonAuth, wagonProxy); listener.setFetcher(fetcher); IndexUpdateRequest iur = new IndexUpdateRequest(indexingContext, fetcher);
ResourceFetcher fetcher = new WagonHelper.WagonFetcher(wagon, tr, null, wagonProxy); IndexUpdateRequest iur = new IndexUpdateRequest(indexingContext, fetcher);
info.setPassword(password); ResourceFetcher resourceFetcher = new WagonHelper.WagonFetcher(httpWagon, listener, info, null); Date lastUpdateLocalRepo = indexingContext.getTimestamp(); IndexUpdateRequest updateRequest = new IndexUpdateRequest(indexingContext, resourceFetcher);
logError( msg, e ); IOException ioException = new IOException( msg ); ioException.initCause( e ); logError( msg, e ); FileNotFoundException fileNotFoundException = new FileNotFoundException( msg ); fileNotFoundException.initCause( e ); logError( msg, e ); IOException ioException = new IOException( msg + "; " + e.getMessage() ); ioException.initCause( e );
logError( msg, e ); IOException ioException = new IOException( msg ); ioException.initCause( e ); logError( msg, e ); FileNotFoundException fileNotFoundException = new FileNotFoundException( msg ); fileNotFoundException.initCause( e ); logError( msg, e ); IOException ioException = new IOException( msg + "; " + e.getMessage() ); ioException.initCause( e );
/** * @param listener * @param authenticationInfo * @param proxyInfo * @return * @throws ComponentLookupException * @deprecated use getWagonResourceFetcher with protocol argument */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo ) throws ComponentLookupException { // we limit ourselves to HTTP only return new WagonFetcher( plexusContainer.lookup( Wagon.class, "http" ), listener, authenticationInfo, proxyInfo ); }
/** * @param listener * @param authenticationInfo * @param proxyInfo * @param protocol protocol supported by wagon http/https * @return * @throws ComponentLookupException * @since 4.1.3 */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo, String protocol ) throws ComponentLookupException { return new WagonFetcher( plexusContainer.lookup( Wagon.class, protocol ), listener, authenticationInfo, proxyInfo ); }
/** * @param listener * @param authenticationInfo * @param proxyInfo * @return * @throws ComponentLookupException * @deprecated use getWagonResourceFetcher with protocol argument */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo ) throws ComponentLookupException { // we limit ourselves to HTTP only return new WagonFetcher( plexusContainer.lookup( Wagon.class, "http" ), listener, authenticationInfo, proxyInfo ); }
/** * @param listener * @param authenticationInfo * @param proxyInfo * @param protocol protocol supported by wagon http/https * @return * @throws ComponentLookupException * @since 4.1.3 */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo, String protocol ) throws ComponentLookupException { return new WagonFetcher( plexusContainer.lookup( Wagon.class, protocol ), listener, authenticationInfo, proxyInfo ); }
/** * @param listener * @param authenticationInfo * @param proxyInfo * @return * @throws ComponentLookupException * @deprecated use getWagonResourceFetcher with protocol argument */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo ) throws ComponentLookupException { // we limit ourselves to HTTP only return new WagonFetcher( plexusContainer.lookup( Wagon.class, "http" ), listener, authenticationInfo, proxyInfo ); }
/** * @param listener * @param authenticationInfo * @param proxyInfo * @param protocol protocol supported by wagon http/https * @return * @throws ComponentLookupException * @since 4.1.3 */ public WagonFetcher getWagonResourceFetcher( final TransferListener listener, final AuthenticationInfo authenticationInfo, final ProxyInfo proxyInfo, String protocol ) throws ComponentLookupException { return new WagonFetcher( plexusContainer.lookup( Wagon.class, protocol ), listener, authenticationInfo, proxyInfo ); }
public InputStream retrieve( String name ) throws IOException, FileNotFoundException { final File target = File.createTempFile( name, "" ); target.deleteOnExit(); retrieve( name, target ); return new FileInputStream( target ) { @Override public void close() throws IOException { super.close(); target.delete(); } }; }
public InputStream retrieve( String name ) throws IOException, FileNotFoundException { final File target = File.createTempFile( name, "" ); retrieve( name, target ); return new FileInputStream( target ) { @Override public void close() throws IOException { super.close(); target.delete(); } }; }