Examples of LinkValidationResult


Examples of org.apache.maven.linkcheck.validation.LinkValidationResult

                //System.out.println("Link Found: " + href);

                LinkCheckResult lcr = new LinkCheckResult();

                LinkValidationItem lvi = new LinkValidationItem(fileToCheck, href);
                LinkValidationResult result = lvm.validateLink(lvi);
                lcr.setTarget(href);

                switch (result.getStatus())
                {
                    case LinkValidationResult.UNKNOWN :
                        unsuccessful++;
                        lcr.setStatus("UNKNOWN REF");
                        break;
View Full Code Here

Examples of org.apache.maven.linkcheck.validation.LinkValidationResult

        //System.out.println("Link Found: " + href);

        LinkCheckResult lcr = new LinkCheckResult();

        LinkValidationItem lvi = new LinkValidationItem(f, href);
        LinkValidationResult result = lvm.validateLink(lvi);
        lcr.setTarget(href);

        switch (result.getStatus())
        {
          case LinkValidationResult.UNKNOWN :
            unsuccessful++;
            lcr.setStatus("UNKNOWN REF");
            break;
View Full Code Here

Examples of org.apache.maven.plugin.linkcheck.validation.LinkValidationResult

                return;
            }
            String href;
            LinkCheckResult lcr;
            LinkValidationItem lvi;
            LinkValidationResult result;
            for ( Iterator iter = hrefs.iterator(); iter.hasNext(); )
            {
                href = (String) iter.next();
                lcr = new LinkCheckResult();
                lvi = new LinkValidationItem( fileToCheck, href );
                result = lvm.validateLink( lvi );
                lcr.setTarget( href );
                lcr.setErrorMessage( result.getErrorMessage() );
                switch ( result.getStatus() )
                {
                    case LinkValidationResult.VALID:
                        successful++;
                        lcr.setStatus( "valid" );
                        addResult( lcr ); //At some point we won't want to store valid links.  The tests require that we do at present
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.