質問

Is it possible to pass a list of Integers into a HttpPost/HttpGet/HttpPut etc, and have it passed into the resource?

public <ReturnType> methodName(@<Jersey annotation> List<Object> objects)
役に立ちましたか?

解決

Something like this?

@GET
@Path("/resource")
public Response restMethod(@QueryParam("num") List<Integer> ints)

Which can then be called like:

http://localhost/resource?num=1&num=2&num=3
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top