Package org.apache.archiva.model

Examples of org.apache.archiva.model.RepositoryURL


    }

    public RepositoryURL toURL( ArtifactReference reference )
    {
        String url = repository.getUrl() + toPath( reference );
        return new RepositoryURL( url );
    }
View Full Code Here


        return repository;
    }

    public RepositoryURL getURL()
    {
        return new RepositoryURL( repository.getUrl() );
    }
View Full Code Here

    }

    public RepositoryURL toURL( ArtifactReference reference )
    {
        String url = repository.getUrl() + toPath( reference );
        return new RepositoryURL( url );
    }
View Full Code Here

        throws ProxyException, NotModifiedException, RepositoryAdminException
    {
        Wagon wagon = null;
        try
        {
            RepositoryURL repoUrl = remoteRepository.getURL();
            String protocol = repoUrl.getProtocol();
            NetworkProxy networkProxy = null;
            if ( StringUtils.isNotBlank( connector.getProxyId() ) )
            {
                networkProxy = networkProxyAdmin.getNetworkProxy( connector.getProxyId() );
            }
View Full Code Here

        try
        {
            Wagon wagon = null;
            try
            {
                RepositoryURL repoUrl = remoteRepository.getURL();
                String protocol = repoUrl.getProtocol();
                NetworkProxy networkProxy = null;
                if ( StringUtils.isNotBlank( connector.getProxyId() ) )
                {
                    networkProxy = networkProxyAdmin.getNetworkProxy( connector.getProxyId() );
                }
View Full Code Here

    extends TestCase
{
    private void assertURL( String actualURL, String protocol, String username, String password, String hostname,
                            String port, String path )
    {
        RepositoryURL url = new RepositoryURL( actualURL );

        assertEquals( protocol, url.getProtocol() );
        assertEquals( username, url.getUsername() );
        assertEquals( password, url.getPassword() );
        assertEquals( hostname, url.getHost() );
        assertEquals( port, url.getPort() );
        assertEquals( path, url.getPath() );
    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.model.RepositoryURL

Copyright © 2018 www.massapicom. 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.