i have successfully set the httpServletResponse().setHeader(“custtype”, “permanent”) but when i try to retrieve it httpServletResponse().getHeader(“custtype”) i do not see getheader method when i do control + soace in eclipse but as per doc at http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html its there. I am not sure why getHeader method is not visible here in eclipse.?
How i can i get header from response?
getHeaders(…) methods HttpServletResponse are supported since Servlet 3.0., Before this version you can find only setHeader(…) methods.
For earlier version you can try wrapping the response and implement storing the headers in your wrapper class.