Examples of WagonFactoryRequest


Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            }

            String wagonProtocol = new URL( remoteRepository.getUrl() ).getProtocol();

            final Wagon wagon = wagonFactory.getWagon(
                new WagonFactoryRequest( wagonProtocol, remoteRepository.getExtraHeaders() ).networkProxy(
                    networkProxy ) );

            // hardcoded value as it's a check of the remote repo connectivity
            wagon.setReadTimeout( 4000 );
            wagon.setTimeout( 3000 );
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            String baseIndexUrl = indexingContext.getIndexUpdateUrl();

            String wagonProtocol = new URL( this.remoteRepository.getUrl() ).getProtocol();

            final StreamWagon wagon = (StreamWagon) wagonFactory.getWagon(
                new WagonFactoryRequest( wagonProtocol, this.remoteRepository.getExtraHeaders() ).networkProxy(
                    this.networkProxy )
            );
            // FIXME olamy having 2 config values
            wagon.setReadTimeout( remoteRepository.getRemoteDownloadTimeout() * 1000 );
            wagon.setTimeout( remoteRepository.getTimeout() * 1000 );
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            {
                String protocol = getProtocol( remoteRepository.getUrl() );
                final NetworkProxy networkProxy = this.networkProxyMap.get( remoteRepository.getId() );

                wagon = wagonFactory.getWagon(
                    new WagonFactoryRequest( "wagon#" + protocol, remoteRepository.getExtraHeaders() ).networkProxy(
                        networkProxy )
                );

                if ( wagon == null )
                {
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

        wagonFactory = mock( WagonFactory.class );

        storage.setWagonFactory( wagonFactory );

        Wagon wagon = new MockWagon();
        when( wagonFactory.getWagon( new WagonFactoryRequest().protocol( "wagon#http" ) ) ).thenReturn( wagon );
    }
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

        storage.setWagonFactory( wagonFactory );

        Wagon wagon = new MockWagon();
        when( wagonFactory.getWagon(
            new WagonFactoryRequest( "wagon#http", new HashMap<String, String>() ) ) ).thenReturn( wagon );
    }
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

        wagonFactory = mock( WagonFactory.class );

        storage.setWagonFactory( wagonFactory );

        Wagon wagon = new MockWagon();
        when( wagonFactory.getWagon( new WagonFactoryRequest().protocol( "wagon#http" ) ) ).thenReturn( wagon );
    }
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            NetworkProxy networkProxy = null;
            if ( StringUtils.isNotBlank( connector.getProxyId() ) )
            {
                networkProxy = networkProxyAdmin.getNetworkProxy( connector.getProxyId() );
            }
            WagonFactoryRequest wagonFactoryRequest = new WagonFactoryRequest( "wagon#" + protocol,
                                                                               remoteRepository.getRepository().getExtraHeaders() ).networkProxy(
                networkProxy );
            wagon = wagonFactory.getWagon( wagonFactoryRequest );
            if ( wagon == null )
            {
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            NetworkProxy networkProxy = null;
            if ( StringUtils.isNotBlank( connector.getProxyId() ) )
            {
                networkProxy = networkProxyAdmin.getNetworkProxy( connector.getProxyId() );
            }
            WagonFactoryRequest wagonFactoryRequest = new WagonFactoryRequest( "wagon#" + protocol,
                                                                               remoteRepository.getRepository().getExtraHeaders() ).networkProxy(
                networkProxy );
            wagon = wagonFactory.getWagon( wagonFactoryRequest );
            if ( wagon == null )
            {
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

            }

            String wagonProtocol = new URL( remoteRepository.getUrl() ).getProtocol();

            final Wagon wagon = wagonFactory.getWagon(
                new WagonFactoryRequest( wagonProtocol, remoteRepository.getExtraHeaders() ).networkProxy(
                    networkProxy ) );

            // hardcoded value as it's a check of the remote repo connectivity
            wagon.setReadTimeout( 4000 );
            wagon.setTimeout( 3000 );
View Full Code Here

Examples of org.apache.archiva.proxy.common.WagonFactoryRequest

        wagonFactory = mock( WagonFactory.class );

        storage.setWagonFactory( wagonFactory );

        Wagon wagon = new MockWagon();
        when( wagonFactory.getWagon( new WagonFactoryRequest().protocol( "wagon#http" ) ) ).thenReturn( wagon );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.