コード例 #1
0
 @Override
 public void addElement(
     StringBuilder buf, Date date, Request request, Response response, long time) {
   if (null != response) {
     Iterator<String> iter = response.getHeaders(header).iterator();
     if (iter.hasNext()) {
       StringBuilder buffer = new StringBuilder();
       boolean first = true;
       while (iter.hasNext()) {
         if (!first) {
           buffer.append(",");
         }
         buffer.append(iter.next());
       }
       buf.append(wrap(buffer.toString()));
     }
     return;
   }
   buf.append("-");
 }
コード例 #2
0
 @Override
 public Collection<String> getHeaders(String name) {
   return response.getHeaders(name);
 }