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();