Package org.apache.droids.api

Examples of org.apache.droids.api.Link


 
  // execute
  @Test
  public void execute_linkIsParsed() throws DroidsException, IOException, URISyntaxException {
    // Arrange
    final Link link = new LinkTask(null, new URI("http://www.google.com"), 1);
   
    // Act
    this.instance.execute(link);
   
    // Assert
View Full Code Here


 
  // execute
  @Test
  public void execute_linkIsParsed() throws DroidsException, IOException, URISyntaxException {
    // Arrange
    final Link link = new LinkTask(null, new URI("http://www.google.com"), 1);
   
    // Act
    this.instance.execute(link);
   
    // Assert
View Full Code Here

    for( Task outTask : parse.getNewTasks() ) {
      // only use Links, so if for some reason it isn't a Link, skip
      if( !(outTask instanceof Link)) {
        continue;
      }
      Link outlink = (Link)outTask;
      String id = outlink.getId();
      if (filters.accept(id) && !filtered.containsKey(id)) {
      if( linkValidator == null ){
        filtered.put(id,outlink);
      }
      else if( linkValidator.validate( outlink ) ){
View Full Code Here

TOP

Related Classes of org.apache.droids.api.Link

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.