com.fastchar.core.FastUrl Maven / Gradle / Ivy
package com.fastchar.core;
import com.fastchar.utils.FastStringUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public final class FastUrl {
private String methodRoute;
private List urlParams = new ArrayList<>();
private List params = new ArrayList<>();
private int level;
public String getMethodRoute() {
return methodRoute;
}
public String getMethodRouteIndex() {
return FastStringUtils.stripEnd(methodRoute, "/") + "/index";
}
public FastUrl setMethodRoute(String methodRoute) {
this.methodRoute = methodRoute;
return this;
}
public List getUrlParams() {
return urlParams;
}
public FastUrl setUrlParams(List urlParams) {
this.urlParams = urlParams;
return this;
}
public int getLevel() {
return level;
}
public FastUrl setLevel(int level) {
this.level = level;
return this;
}
public List getParams() {
return params;
}
public FastUrl setParams(List params) {
this.params = params;
return this;
}
}