/** * Adds the parameter to the URL while URL encoding them. * * @param name the name of the parameter. This value cannot be blank. * @param value the value of the parameter. * @return this builder so that calls may be changed * @throws IllegalArgumentException if name is blank */ public UrlBuilder addParameter(final String name, final String value) { notBlank("name", name); final String safeName = encode(name); final String safeValue = value == null ? "" : encode(value); addParameterUnsafe(safeName, safeValue); return this; }
public String includeShortcuts() { UrlBuilder url = new UrlBuilder(createUrl()); for (Context context : getRequiredContexts()) { url.addParameterUnsafe("context", context.toString()); } return url.asUrlString(); }
urlBuilder.addParameterUnsafe("jql", "assignee%20in%20(" + JiraUrlCodec.encode(user.getName(), true) + ")%20ORDER%20BY%20priority%20ASC"); urlBuilder.addParameterUnsafe("jql", "reporter%20in%20(" + JiraUrlCodec.encode(user.getName(), true) + ")%20ORDER%20BY%20priority%20ASC");