public static QueryBuilder parse ( String raw , boolean isQuery ) throws IOException { if ( raw . startsWith ( "?" ) ) { return parseURI ( raw . substring ( 1 ) ) ; } else if ( raw . startsWith ( "{" ) ) { return new RawQueryBuilder ( raw , isQuery ) ; } else { throw new IllegalArgumentException ( "Failed to parse query: " + raw ) ; } }
Builds a QueryBuilder from the given string