Helper method. Initializes the pathVariables property of this class.

@param routePath the route path as defined in the routes.config file.
495856
protected void initPathVariables(String routePath) {
		pathVariables.clear();
		
		List<String> variables = getVariables(routePath);
		String regexPath = routePath.replaceAll(Path.VAR_REGEXP, Path.VAR_REPLACE);

		Matcher matcher = Pattern.compile("(?i)" + regexPath).matcher(getPath());
		matcher.matches();

		// start index at 1 as group(0) always stands for the entire expression
		for (int i=1; i <= variables.size(); i++) {
			String value = matcher.group(i);
			pathVariables.put(variables.get(i-1), value);
		}
	}
1211146
void initWithSingleTokenPath(String path) {
        this.path = path;
        this.index = 0;
        this.offset = 0;
        this.nextSplit = -1;
        this.token = path;
    }
804156
public static void setInitFilePath(String filePath) {
		filePath=getPropertiesFilePath(filePath);
		
		if (staticFileProperties == null) {
			staticFileProperties=new FileProperties(filePath);
		} else {
			staticFileProperties.setInitFilePath(filePath);
		}
	}
876157
public void setClasspath(Path classpath)
    {
        if (_classpath == null)
        {
            _classpath = classpath;
        }
        else
        {
            _classpath.append(classpath);
        }
        log("Verification classpath is "+ _classpath,
            Project.MSG_VERBOSE);
    }
483038
@Override
  public void init(String siteurl, String scriptpath) throws Exception {
    ApacheHttpClientConfig config = new DefaultApacheHttpClientConfig();
    config.getProperties().put(ApacheHttpClientConfig.PROPERTY_HANDLE_COOKIES,
        true);
    client = ApacheHttpClient.create(config);
    client.setFollowRedirects(true);
    // org.apache.log4j.Logger.getLogger("httpclient").setLevel(Level.ERROR);
    this.siteurl = siteurl;
    this.scriptPath = scriptpath;
  }
1254242
private void initVariables() {
        if (this.currentChunk == null) {
            this.currentChunk = new Instances(this.getModelContext());
        }

        if (this.classDistributions == null) {
            this.classDistributions = new long[this.getModelContext().classAttribute().numValues()];

            for (int i = 0; i < this.classDistributions.length; i++) {
                this.classDistributions[i] = 0;
            }
        }
    }
1232419
public void setRequestPath(String mapping, String path) {
		this.requestPath = path;
		int paramStartIdx = requestPath.indexOf("?");
		if(StringUtils.isEmpty(mapping)){
			if(paramStartIdx != -1){
				this.servletPath = requestPath.substring(0, paramStartIdx);
			}else{
				this.servletPath = requestPath;
			}
		}else{
			this.servletPath = PathNormalizer.asPath(mapping);
			String pathInfo = removeServletMappingFromPath(path, mapping);
			this.pathInfo = pathInfo;
		}
		
		// Sets the request URI
		if(paramStartIdx == -1){
			this.requestURI = requestPath;
		}else{
			this.requestURI = requestPath.substring(0, paramStartIdx);
		}
		
		initParameters();
		
	}
1052464
public void setPathElements(String servletPath, String pathInfo)
    {
        ((SRTServletRequest)_request).resetPathElements();

        if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable (Level.FINE)) {    //PI67942
            logger.logp(Level.FINE, CLASS_NAME,"setPathElements", "servletPath = " + servletPath +", pathInfo = " + pathInfo +" : this = " + this);
        }
        //PK39337 - start
        if (removeServletPathSlash) {

            boolean hasSlashStar = false;
            boolean isPossible = isPossibleSlashStarMapping();
            if (isPossible) {
                hasSlashStar = hasSlashStarMapping();
            }

            if(hasSlashStar) {
                this._servletPath = "";
                if (servletPath == null) {
                    this._pathInfo = pathInfo;
                } else if (pathInfo == null) {
                    this._pathInfo = servletPath;
                } else {
                    this._pathInfo = servletPath + pathInfo;
                }
            }
            else if (isPossible) {
                //this means that it probably used the mapping '/'
                //so the servlet path can't be null or and empty string.
                if (servletPath == null || servletPath.equals("")) {
                    this._servletPath = pathInfo;
                    this._pathInfo = null;
                }
                else {
                    this._servletPath = servletPath;
                    this._pathInfo = pathInfo;
                }
            }
            else {
                this._servletPath = servletPath;
                this._pathInfo = pathInfo;
            }

            if ((_servletPath != null) && (_servletPath.length() > 1 && _servletPath.endsWith("/"))) {
                this._servletPath = _servletPath.substring(0, (_servletPath.length() - 1));
                if (_pathInfo ==null)
                    this._pathInfo = "/";
                else
                    this._pathInfo = "/"+ _pathInfo;
            }       		
        }
        //PK39337 - end
        else if (servletPath.length()==1 && servletPath.charAt(0)=='/' && !Boolean.valueOf(WCCustomProperties.SERVLET_PATH_FOR_DEFAULT_MAPPING).booleanValue()) {
            this._servletPath = "";
            if (pathInfo ==null)
                this._pathInfo = "/";
            else
                this._pathInfo = "/"+ pathInfo;
        }
        else {
            this._servletPath = servletPath;
            this._pathInfo = pathInfo;
        }

        this.relativeUri = _servletPath;

        if (_pathInfo != null)
            relativeUri += _pathInfo;
        
        if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable (Level.FINE)) { 
            logger.logp(Level.FINE, CLASS_NAME,"setPathElements", "returns with servletPath = " + _servletPath +", pathInfo = " + _pathInfo +" : this = " + this);
        }
        
    }
1117
public void setClasspath(String classpath) {
        this.classpath = new LinkedList<String>();
        StringTokenizer tokenizer = new StringTokenizer(classpath, File.pathSeparator);
        while (tokenizer.hasMoreTokens()) {
            this.classpath.add(tokenizer.nextToken());
        }
    }
349808
public void setPath(String path)
    {
        if (getState() != __MSG_EDITABLE) throw new IllegalStateException("Not EDITABLE");
        if (_uri == null)
            _uri = new URI(path);
        else
            _uri.setURI(path);
    }
828388
public void init(final SQLRouteResult routeResult) throws SQLException {
        setSqlStatement(routeResult.getSqlStatement());
        getExecuteGroups().addAll(obtainExecuteGroups(routeUnits));
    }
921880
@SuppressWarnings("unchecked")
    protected <A, E extends SimpleExpression<? super A>> SetPath<A, E> createSet(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits) {
        return add(new SetPath<A, E>(type, (Class) queryType, forProperty(property), inits));
    }
39977
public void setRouteTables(java.util.Collection<RouteTable> routeTables) {
        if (routeTables == null) {
            this.routeTables = null;
            return;
        }

        this.routeTables = new com.amazonaws.internal.SdkInternalList<RouteTable>(routeTables);
    }
1326653
private void initBaseTemplatePath(ServletContext servletContext) {
		if (engine.getSourceFactory() instanceof ClassPathSourceFactory) {
			// do nothing
		} else {
			if (StrKit.isBlank(engine.getBaseTemplatePath())) {
				String path = servletContext.getRealPath("/");
				engine.setBaseTemplatePath(path);
			}
		}
	}
738245
public void addVariable(VariableInitializer v) {
        assertNotNull(v);
        variables.add(v);
        v.setParent(this);
    }
1309584
public final void initActor(String path, ActorContext context, Mailbox mailbox) {
        this.path = path;
        this.context = context;
        this.mailbox = mailbox;
    }
128001
void initConfigs(String propertiesAbsoluteClassPath) {
        this.propertiesAbsoluteClassPath = propertiesAbsoluteClassPath;
        this.propertiesFilePath = ResourceUtil.getAbsolutePath(propertiesAbsoluteClassPath);
        loadConfigs();
    }