【发布时间】:2016-12-11 22:59:32
【问题描述】:
您好,我正在为我的网络服务使用 Resteasy api.. 我有一个可以接受表单发布请求的资源..
@POST
@Path("/path_here")
public Response redirectURL(String req){
String url = "http://localhost:8080/url_here";
URL newUrl = new URL(url);
return Response.temporaryRedirect(newUrl.toURI()).build();
}
上面的代码只是在重定向的 URL 上发布请求的参数.. 所以这意味着重定向的 URL 具有发布请求参数..
请问有没有办法在请求参数进入重定向URL之前过滤和更改请求参数?
【问题讨论】:
-
澄清编辑发布请求值。
标签: java post resteasy http-redirect