org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java
public void reset()
  {
    _scheme = null;
    _userInfo = null;
    _host = null;
    _port = -1;
    _path = null;
    _query = new QueryBuilder();
    _fragment = null;
    _escapeFragment = true;
  }
public void reset()
  {
    _scheme = null;
    _userInfo = null;
    _host = null;
    _port = -1;
    _path = null;
    _query = new QueryBuilder();
    _fragment = null;
    _escapeFragment = true;
  }
Call this method when you want to reset the internal string to start
from scratch again