code: public String getPath(boolean p_includeQueryString,
                          boolean p_includeFragment)
    {
  
      StringBuffer pathString = new StringBuffer(m_path);
  
      if (p_includeQueryString && m_queryString != null)
      {
        pathString.append('?');
        pathString.append(m_queryString);
      }
  
      if (p_includeFragment && m_fragment != null)
      {
        pathString.append('#');
        pathString.append(m_fragment);
      }
  
      return pathString.toString();
    }
docs: Get the path for this URI (optionally with the query string and
  fragment).
  
  @param p_includeQueryString if true (and query string is not null),
  then a "?" followed by the query string
  will be appended
  @param p_includeFragment if true (and fragment is not null),
  then a "#" followed by the fragment
  will be appended
  
  @return the path for this URI possibly including the query string
  and fragment