Thursday, May 7, 2015

Reading custom headers from restclient using Restful Jersey


1.@HeaderParam----to read custom HttpHeaders

public void getStudent(Student student,@HeaderParam("x-userName")String userName) {

System.out.println("custom header x-userName is:"+userName);

No comments:

Post a Comment