Rest 如何阻止通用Url对Url进行编码

Rest 如何阻止通用Url对Url进行编码,rest,oauth,google-oauth,jira,Rest,Oauth,Google Oauth,Jira,我一直在使用google.api.client.http.GenericUrl从Jira获取问题 为了从Jira中提取问题,它使用jqlurl参数,例如: 这将是json中项目键“KAFKA”的问题列表。 GenericUrl正在将=编码为%3D 在这种情况下,当前url变为 它提取所有项目的所有问题,而不是针对指定的密钥。 理想情况下,其输出应限于给定的键 以下是我的代码: String jiraUrl="https://ip_address/jira/rest/api/latest/sear

我一直在使用
google.api.client.http.GenericUrl
从Jira获取问题

为了从Jira中提取问题,它使用
jql
url参数,例如:

这将是
json
中项目键“KAFKA”的问题列表。 GenericUrl正在将
=
编码为
%3D

在这种情况下,当前url变为 它提取所有项目的所有问题,而不是针对指定的密钥。 理想情况下,其输出应限于给定的键

以下是我的代码:

String jiraUrl="https://ip_address/jira/rest/api/latest/search?";
GenericUrl geneUrl = new GenericUrl(jiraUrl);       
geneUrl.set("jql=project", projectKey);
geneUrl.set("maxResults", batchSize);
geneUrl.set("startAt", page);
HttpRequest request = requestFactory.buildGetRequest(geneUrl);
我试着跟着

GenericUrl url = new GenericUrl=("https://ip_address/jira/rest/api/latest/search?jql=project=KAFKA&maxResults=100&startA=0);
GenericUrl geneUrl = new GenericUrl(jiraUrl);       
geneUrl.set("jql", "project="+projectKey);
geneUrl.set("maxResults", batchSize);
geneUrl.set("startAt", page);
但它正在将url更改为
https://ip_address/jira/rest/api/latest/search**jql=projectKAFKA**&maxResults=100&startA=0
这是失败的


我该如何解决这个问题?是否可以按原样传递url而不进行编码?

问题已解决。我没有跟随

GenericUrl url = new GenericUrl=("https://ip_address/jira/rest/api/latest/search?jql=project=KAFKA&maxResults=100&startA=0);
GenericUrl geneUrl = new GenericUrl(jiraUrl);       
geneUrl.set("jql", "project="+projectKey);
geneUrl.set("maxResults", batchSize);
geneUrl.set("startAt", page);