6263646566676869707172
Map<String, String[]> qpm = context.getQueryParamMap(); qpm.get("pageNum"); qpm.get("numPerPage"); // 同上,这里主要是自定义一个类为了让开发者能够声明 QueryParams qp = context.getQueryParams(); // 当前执行Action对应的 URI String uri = context.getUri(); // 当前执行Action时的HTTP METHOD
179180181182183184185186187188189
this.uri = uri; } public QueryParams getQueryParams() { if (queryParams == null) { queryParams = new QueryParams(); queryParams.setMap(queryParamMap); } return queryParams; }
259260261262263264265266267268269
this.uri = uri; } public QueryParams getQueryParams() { if (queryParams == null) { queryParams = new QueryParams(); queryParams.setMap(queryParamMap); } queryParams.putAll(pathParamMap); return queryParams;