Reputation: 6537
I need the list of String parameter of request.getHeader(String value) . I already know one which is "User-Agent" (e.g. request.getHeader("User-Agent") )
also for such cases about other methods like this, how do I get the list of parameter of such methods.
Upvotes: 1
Views: 2317
Reputation: 5038
You can use getHeaderNames(). It returns an Enumeration<java.lang.String>
of all the header names the request
contains.
Upvotes: 1