protected void parseResponseHeaders(URLConnection conn) {
List<String> cookieStrings = conn.getHeaderFields().get(HessianHttpProxy.COOKIE_SET.toString());
if (cookieStrings != null) {
String host = conn.getURL().getHost();
for (String s : cookieStrings) {
Cookie cookie = CookieParser.parse(host, s);
HessianHttpProxy.cookieMap.put(cookie.host + cookie.path, cookie);
log.finest("Cookie cached: " + cookie.host + cookie.path + ":" + s);
}
}
}