Class UrlBuilder

java.lang.Object
com.atlassian.bamboo.util.UrlBuilder

public class UrlBuilder extends Object
From http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6306820

Given a URL and a set of parameters, provide abilites to add and remove parameters (either directly, from a Map, or from a Bean), and finally reconstruct the proper URL. For example:

UrlBuilder builder = new UrlBuilder() .setUrl( strUrl )) .addParameters( p_request.getParameterMap() ); .removeParameter( "id" ) .addParameter( "session", strSession );

Note that this class currently does not support URL rewriting of cookie strings (though it should).