code: public static String buildCleanedParametersURIRepresentation(org.apache.commons.httpclient.URI uri,
  			SpiderParam.HandleParametersOption handleParameters, boolean handleODataParametersVisited) throws URIException {
  		// If the option is set to use all the information, just use the default string representation
  		if (handleParameters.equals(HandleParametersOption.USE_ALL)) {
  			return uri.toString();
  		}
  
  		// If the option is set to ignore parameters completely, ignore the query completely
  		if (handleParameters.equals(HandleParametersOption.IGNORE_COMPLETELY)) {
  			return createBaseUriWithCleanedPath(uri, handleParameters, handleODataParametersVisited);
  		}
  
  		// If the option is set to ignore the value, we get the parameters and we only add their name to the
  		// query
  		if (handleParameters.equals(HandleParametersOption.IGNORE_VALUE)) {
  			StringBuilder retVal = new StringBuilder(
  					createBaseUriWithCleanedPath(uri, handleParameters, handleODataParametersVisited));
  			
  			String cleanedQuery = getCleanedQuery(uri.getEscapedQuery());
  			
  			// Add the parameters' names to the uri representation. 
  			if(cleanedQuery.length()>0) {
  				retVal.append('?').append(cleanedQuery);
  			}
  
  			return retVal.toString();
  		}
  
  		// Should not be reached
  		return uri.toString();
  	}
docs: Builds a String representation of the URI with cleaned parameters, that can be used when checking if an
  URI was already visited. The URI provided as a parameter should be already cleaned and canonicalized,
  so it should be build with a result from {@link #getCanonicalURL(String)}.
  
  <p>
  When building the URI representation, the same format should be used for all the cases, as it may
  affect the number of times the pages are visited and reported if the option HandleParametersOption is
  changed while the spider is running.
  </p>
  
  @param uri the uri
  @param handleParameters the handle parameters option
  @param handleODataParametersVisited Should we handle specific OData parameters
  @return the string representation of the URI
  @throws URIException the URI exception