Enumeration in helma

// Enumeration
for (var e = req.servletRequest.getHeaderNames(); e.hasMoreElements() ; ) {
var obj = e.nextElement();
app.log(“—“);
app.log(“—header name: “+obj);
app.log(“—header value: “+req.servletRequest.getHeader(obj));
}

Advertisements