Heritrix 动态URL

来源:互联网 发布:网络管理岗位说明书 编辑:程序博客网 时间:2024/05/21 10:06

private String joinParts() {
            StringBuffer sb = new StringBuffer(length());
            sb.append(mainPart.asStringBuffer());
            if (null != uniquePart) {
                sb.append(uniquePart);
            }           
            if (suffixAtEnd) {
                if (null != query) {
               sb.append("@");
                    sb.append(query);
                }
                if (null != suffix) {
                    sb.append('.');
                    sb.append(suffix);
                }
            }

suffixAtEnd if true, the suffix is placed at the end of the path, after the query (if any); otherwise, the suffix is placed before the query

英语不好看了个大概,大概是说query(?后面的值)suffix(后缀)的位置关系, sb.append("@");
这个是在查询和前面页面的名称之间加上@符号隔开

原创粉丝点击