private void addQuery(String query, boolean validate) throws URISyntaxException
  {
    if(query == null)
      return;

    if("".equals(query))
      return;

    if(validate)
      validateQuery(query);

    if(_query.length() > 0)
      _query.append('&');

    _query.append(query);

    if(_queryParameters != null)
      addQueryToMap(query);
  }
private void addQuery(String query, boolean validate) throws URISyntaxException
  {
    if(query == null)
      return;

    if("".equals(query))
      return;

    if(validate)
      validateQuery(query);

    if(_query.length() > 0)
      _query.append('&');

    _query.append(query);

    if(_queryParameters != null)
      addQueryToMap(query);
  }
private void addQuery ( String query , boolean validate ) throws URISyntaxException { if ( query == null ) return ; if ( "" . equals ( query ) ) return ; if ( validate ) validateQuery ( query ) ; if ( _query . length ( ) > 0 ) _query . append ( ' ' ) ; _query . append ( query ) ; if ( _queryParameters != null ) addQueryToMap ( query ) ; }
Simply adds the query provided. It is assumed that the query is properly
encoded for url!

@param query the properly url encoded query (<code>null</code> is ok)
@param validate <code>true</code> true for validating (should be called
with <code>false</code> only when sure that it is valid..)
Simply adds the query provided . It is assumed that the query is properly encoded for url!