Package com.subgraph.vega.impl.scanner.requests

Examples of com.subgraph.vega.impl.scanner.requests.IRequestBuilder


public class PathState implements IPathState {

  public static PathState createBasicPathState(ICrawlerResponseProcessor fetchProcessor, PathStateManager stateManager, PathState parentState, IWebPath path) {
    final IHttpRequestEngine requestEngine = stateManager.getCrawler().getRequestEngine();
    final IRequestBuilder rb = new BasicRequestBuilder(requestEngine, path);
    final PathState st = new PathState(fetchProcessor, stateManager, parentState, path, rb);
    if(parentState != null)
      parentState.addChildState(st, true);
    else {
      st.setLocked();
View Full Code Here


  public static PathState createParameterPathState(ICrawlerResponseProcessor fetchProcessor, PathState parentState, List<NameValuePair> parameters, int fuzzIndex) {
    if(parentState == null)
      throw new IllegalArgumentException("Parent of parameter path cannot be null");
    final IHttpRequestEngine requestEngine = parentState.getPathStateManager().getCrawler().getRequestEngine();
    final IRequestBuilder rb = new GetParameterRequestBuilder(requestEngine, parentState.getPath(), parameters, fuzzIndex);
    final PathState st = new PathState(fetchProcessor, parentState.getPathStateManager(), parentState, parentState.getPath(), rb);
    parentState.addChildState(st, false);
    return st;
  }
View Full Code Here

  public static PathState createPostParameterPathState(ICrawlerResponseProcessor fetchProcessor, PathState parentState, List<NameValuePair> parameters, int fuzzIndex) {
    if(parentState == null)
      throw new IllegalArgumentException("Parent of parameter path cannot be null");
    final IHttpRequestEngine requestEngine = parentState.getPathStateManager().getCrawler().getRequestEngine();
    final IRequestBuilder rb = new PostParameterRequestBuilder(requestEngine, parentState.getPath(), parameters, fuzzIndex);
    final PathState st = new PathState(fetchProcessor, parentState.getPathStateManager(), parentState, parentState.getPath(), rb);
    parentState.addChildState(st, false);
    return st;
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.impl.scanner.requests.IRequestBuilder

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.