Package com.subgraph.vega.api.model.scope

Examples of com.subgraph.vega.api.model.scope.ITargetScope


    return scope;
  }
 
  private ITargetScope createDefaultScope() {
    final long id = scopeId.allocateId();
    final ITargetScope scope = new TargetScope(id, true, scopeChangeListeners);
    ((TargetScope)scope).setIsActiveScope(true);
    scope.setName("Default Scope");
    database.store(scope);
    return scope;
  }
View Full Code Here


        return scope.isActiveScope();
      }
    });

    if(results.size() == 0) {
      final ITargetScope active = findDefaultScope();
      ((TargetScope)active).setIsActiveScope(true);
      return active;
    }
    return results.get(0);
  }
View Full Code Here

    final HttpHost targetHost = URIUtils.extractHost(u);
    return new VegaURI(targetHost, u.getPath(), u.getQuery());
  }

  private boolean isTargetInScope(URI target) {
    final ITargetScope activeScope = scopeTracker.getCurrentActiveScope();
    if(activeScope == null) {
      return false;
    }
    return activeScope.filter(target);
  }
View Full Code Here

    }
    return false;
  }
 
  public boolean isAllowed(VegaURI uri) {
    final ITargetScope scanTargetScope = scannerConfig.getScanTargetScope();
    return scanTargetScope.filter(uri.toURI()) && !isExcluded(uri);
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.api.model.scope.ITargetScope

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.