我需要在Jersey上做一个代理API服务.我需要在泽西方法中拥有完整的请求URL.我不想指定所有可能的参数.
例如:
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Path("/media.json")
public String getMedia( ){
// here I want to get the full request URL like /media.json?param1=value1¶m2=value2
}
Run Code Online (Sandbox Code Playgroud)
我该怎么做?