package com.dtflys.forest.backend.url;

import com.dtflys.forest.http.ForestRequest;
import org.apache.commons.lang3.StringUtils;


/**
 * @author gongjun[jun.gong@thebeastshop.com]
 * @since 2017-05-19 14:10
 */
public class SimpleURLBuilder extends URLBuilder {

    @Override
    public String buildUrl(ForestRequest request) {
        String url = request.getUrl();
        String query = request.getQuery();
        if (StringUtils.isNotBlank(query)) {
            url += "?" + query;
        }
        return url;
    }

}

@@ -89,32 +89,31 @@
 ort 
-org.apache.commons.lang3
+com.dtflys.forest.utils
 .Str

去掉对commons-lang3的依赖