private void logHeaders(){
  if (LOG.isDebugEnabled()) {
    Map<String,List<String>> headers=conn.getHeaderFields();
    for (    String key : headers.keySet()) {
      for (      String value : headers.get(key)) {
        LOG.debug("HEADER {}: {}",key,value);
      }
    }
  }
}

private void logHeaders ( ) { if ( LOG . isDebugEnabled ( ) ) { Map < String , List < String > > headers = conn . getHeaderFields ( ) ; for ( String key : headers . keySet ( ) ) { for ( String value : headers . get ( key ) ) { LOG . debug ( "HEADER {}: {}" , key , value ) ; } } } }
log all http headers in debug mode .
