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

Leave a Reply

Your email address will not be published. Required fields are marked *

12 − 3 =