标签:map headers ccf val art htm new ati put
1.获取全部头信息:
//get request headers private Map<String, String> getHeadersInfo() { Map<String, String> map = new HashMap<String, String>(); Enumeration headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); map.put(key, value); } return map; }
private String getHeader(String headerName) { return request.getHeader(headerName); }
标签:map headers ccf val art htm new ati put
原文地址:http://www.cnblogs.com/ismallboy/p/6785367.html