LynAs
LynAs

Reputation: 6537

List of parameter of request.getHeader(String value)

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

Answers (1)

Asif
Asif

Reputation: 5038

You can use getHeaderNames(). It returns an Enumeration<java.lang.String> of all the header names the request contains.

Upvotes: 1

Related Questions