Package com.subgraph.vega.api.model.web

Examples of com.subgraph.vega.api.model.web.IWebPath


    final IWebPath parentPath = ps.getPath().getParentPath();
    return(parentPath != null && parentPath.getParentPath() != null);
  }
 
  private HttpUriRequest createRequest(IPathState ps) {
    final IWebPath path = ps.getPath();
    final IWebPath parent = path.getParentPath();
    String basePath = parent.getParentPath().getFullPath();
    String newPath = basePath + "foo/" + path.getPathComponent();
    return ps.getRequestEngine().createGetRequest(path.getHttpHost(), newPath);
  }
View Full Code Here


  private final Map<Set<String>, List<PathState>> parametersToPathStates = new HashMap<Set<String>, List<PathState>>();
  private final Map<Set<String>, List<PathState>> parametersToPostPathStates = new HashMap<Set<String>, List<PathState>>();

  PathStateParameterManager(PathState ps) {
    this.pathState = ps;
    final IWebPath path = ps.getPath();
    IWebPathParameters parameters = path.getGetParameters();
    // XXX hmmm?
    for(List<NameValuePair> plist: parameters.getParameterLists()) {
      addParameterList(plist);
    }
  }
View Full Code Here

    ps.setResponse(response);
    callFetchHandler(ctx, ps);
  }

  private void callFetchHandler(IInjectionModuleContext ctx, IPathState ps) {
    final IWebPath path = ps.getPath();
    final HttpUriRequest req = ps.createRequest();
    final IHttpResponse res = ps.getResponse();
    if(path.getPathType() == PathType.PATH_DIRECTORY || path.getParentPath() == null)
      fetchDirProcessor.processResponse(null, req, res, ctx);
    else
      fetchFileProcessor.processResponse(null, req, res, ctx);
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.api.model.web.IWebPath

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.