Package org.codehaus.plexus.formica.util

Examples of org.codehaus.plexus.formica.util.MungedHttpsURL


            // if it is a https connection then we have a bit more work to do, currently
            // only accepting the munged https url that is resolved in MungedHttpsURL
            if ( urlString != null && urlString.startsWith( "http" ) )
            {
                MungedHttpsURL url = new MungedHttpsURL( urlString );

                url.setLogger( getLogger() );

                return url.isValid();
            }
            else
            {
                URL url = new URL( urlString );

                InputStream is = url.openStream();

                is.close();
            }
        }
        catch ( Exception e )
View Full Code Here


        InputStream is = null;

        if ( metadata.getProtocol().startsWith( "http" ) )
        {
            is =
                new MungedHttpsURL( metadata.toExternalForm(), username, password ).getURLConnection().getInputStream();
        }
        else
        {
            is = metadata.openStream();
        }
View Full Code Here

                catch ( SettingsConfigurationException se )
                {
                    getLogger().warn( "problem with settings file, disabling scm resolution of username and password" );
                }

                MungedHttpsURL mungedURL;

                if ( username == null )
                {
                    mungedURL = new MungedHttpsURL( curl );
                    username = mungedURL.getUsername();
                    password = mungedURL.getPassword();
                }
                else
                {
                    mungedURL = new MungedHttpsURL( curl, username, password );
                }

                mungedURL.setLogger( getLogger() );

                if ( mungedURL.isValid() )
                {
                    url = mungedURL.getURL();

                    BuildDefinitionTemplate buildDefinitionTemplate = getBuildDefinitionTemplate( context );
                    if ( buildDefinitionTemplate == null )
                    {
                        buildDefinitionTemplate = projectBuilder.getDefaultBuildDefinitionTemplate();
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.formica.util.MungedHttpsURL

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.