public void addQuery(Query query)
  {
    if(query == null)
      return;
    try
    {
      if(!query.getEncoding().equals(getEncoding()))
        throw new RuntimeException("TODO");

      addQuery(query.getQuery(), false);
    }
    catch(URISyntaxException e)
    {
      // shouldn't happen since a query is already properly formatted
      throw new RuntimeException(e);
    }
  }
public void addQuery(Query query)
  {
    if(query == null)
      return;
    try
    {
      if(!query.getEncoding().equals(getEncoding()))
        throw new RuntimeException("TODO");

      addQuery(query.getQuery(), false);
    }
    catch(URISyntaxException e)
    {
      
      throw new RuntimeException(e);
    }
  }
public void addQuery ( Query query ) { if ( query == null ) return ; try { if ( ! query . getEncoding ( ) . equals ( getEncoding ( ) ) ) throw new RuntimeException ( "TODO" ) ; addQuery ( query . getQuery ( ) , false ) ; } catch ( URISyntaxException e ) { // shouldn't happen since a query is already properly formatted throw new RuntimeException ( e ) ; } }
Simply adds the query provided.

@param query the query (<code>null</code> is ok)
Simply adds the query provided .