Package com.subgraph.vega.impl.scanner.state

Examples of com.subgraph.vega.impl.scanner.state.PathState


      }
      path = childPath;
    }
   
    if(path == rootPath && uri.getQuery() != null) {
      final PathState ps = pathStateManager.getStateForPath(rootPath);
      synchronized (pathStateManager) {
        ps.maybeAddParameters(URLEncodedUtils.parse(uri.getQuery(), Consts.UTF_8));
      }
    }
    return pathStateManager.getStateForPath(path);
  }
View Full Code Here


  private void processDirectory(IWebPath webPath, VegaURI uri) {
    synchronized(pathStateManager) {
      if(!pathStateManager.hasSeenPath(webPath)) {
        webPath.setPathType(PathType.PATH_DIRECTORY);
        final PathState ps = pathStateManager.createStateForPath(webPath, directoryProcessor);
        if(uri.getQuery() != null) {
          ps.maybeAddParameters(URLEncodedUtils.parse(uri.getQuery(), Consts.UTF_8));
        }
        return;
      }
      if(webPath.getPathType() != PathType.PATH_DIRECTORY) {
        // XXX What to do in this case?  The PathState node may be executing PATH_UNKNOWN checks already
View Full Code Here

  private void processPathWithQuery(IWebPath path, VegaURI uri) {
    path.setPathType(PathType.PATH_FILE);
    List<NameValuePair> plist = URLEncodedUtils.parse(uri.getQuery(), Consts.UTF_8);
    synchronized(pathStateManager) {
      final PathState ps = getPathStateForFile(path);
      if(ps != null) {
        ps.maybeAddParameters(plist);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.impl.scanner.state.PathState

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.