title: Redirect URL in java
body: <p>Hi I'm using Resteasy api for my webservice..
  I have a resource that will accept a form post request.. </p>
  
  <pre><code>@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();
  }
  </code></pre>
  
  <p>the code above just post the requested parameters on the redirected URL..
  so meaning the redirected URL has the post request params..</p>
  
  <p>I would like to ask if there is a way to filter and change the request parameters before it goes to the redirect URL?</p>