private HttpMethod buildMethod(String url, LocationInfo locationInfo, HttpOperation httpOperation) {
    HttpMethod method = new GetMethod(url);
    ArrayList<NameValuePair> list = new ArrayList<>(5);
    list.add(new NameValuePair("o", httpOperation.getOperation()));

    locationInfo.getPackageName().ifPresent(p -> list.add(new NameValuePair("p", p)));
    locationInfo.getClassName().ifPresent(p -> list.add(new NameValuePair("c", p)));
    locationInfo.getFileName().ifPresent(p -> list.add(new NameValuePair("f", p)));
    locationInfo.getMessage().ifPresent(m -> list.add(new NameValuePair("m", m)));
    locationInfo.getLineNumber().map(i -> Integer.toString(i)).ifPresent(l -> list.add(new NameValuePair("l", l)));


    NameValuePair[] pair = list.toArray(new NameValuePair[0]);

    method.setQueryString(pair);
    return method;
  }
jump to location represented by given URL

@param url a JumpToCode url that represents a source location
olv-core/src/main/java/pl/otros/logview/gui/services/jumptocode/JumpToCodeClient.java