Web services 如何基于多个参数筛选web服务结果?

Web services 如何基于多个参数筛选web服务结果?,web-services,spring,rest,filter,Web Services,Spring,Rest,Filter,要筛选多个参数,我使用以下web服务调用: http://mysite/sites/test/_vti_bin/listdata.svc/Values?$filter=param1%20eq%20'test1'%20and%20param2%20eq%20'test2' 但是如何以编程方式使用此筛选器 要在Java中调用web服务并传入筛选器名称和值,我使用: Map<String, String> variables = new HashMap<String, String

要筛选多个参数,我使用以下web服务调用:

http://mysite/sites/test/_vti_bin/listdata.svc/Values?$filter=param1%20eq%20'test1'%20and%20param2%20eq%20'test2'
但是如何以编程方式使用此筛选器

要在Java中调用web服务并传入筛选器名称和值,我使用:

Map<String, String> variables = new HashMap<String, String>();
variables.put("filterName", "param1");
variables.put("filterValue", "test1");

这适用于对一个参数进行过滤。但是如何基于多个参数进行过滤,在本例中包括名称/值对“param2/test2”?

这对于StackOverflow来说更像是一个问题,因为它与getForObject方法及其重载有关。这不是一个SharePoint问题。可能是重复的
readOnlyRestTemplate.getForObject(url, String, variables);