Wednesday, 29 April 2015

Redirect In Jersey


How to  redirect to any url in jersey


  @GET
  @Path("/user")
    public Response userVerification(@Context Response response){
      
      java.net.URI location = new java.net.URI("http://www.ariseter.com");
   

      return Response.temporaryRedirect(location).build();

    }



This is redirect to www.ariseter.com

No comments:

Post a Comment