@Override
public String getColumnText(Object element, int columnIndex) {
if(!(element instanceof IRequestLogRecord))
return null;
final IRequestLogRecord record = (IRequestLogRecord) element;
switch(columnIndex) {
case 0:
return Long.toString(record.getRequestId());
case 1:
return record.getHttpHost().toURI();
case 2:
return record.getRequest().getRequestLine().getMethod();
case 3:
return record.getRequest().getRequestLine().getUri();
case 4:
return Integer.valueOf(record.getResponse().getStatusLine().getStatusCode()).toString();
case 5:
return getResponseLength(record.getResponse());
case 6:
return Long.toString(record.getRequestMilliseconds());
case 7:
final int count = record.getTagCount();
if (count != 0) {
return Integer.toString(count);
} else {
return "";
}