addColumn(cdm);
cdm = new ColumnDataModel() {
public Object getValue(Object key) {
if (_model == null) return null;
HttpUrl url = _model.getRequestUrl((ConversationID) key);
return url.getScheme() + "://" + url.getHost() + ":" + url.getPort();
}
public String getColumnName() { return "Host"; }
public Class getColumnClass() { return String.class; }
};
addColumn(cdm);
cdm = new ColumnDataModel() {
public Object getValue(Object key) {
if (_model == null) return null;
HttpUrl url = _model.getRequestUrl((ConversationID) key);
return url.getPath();
}
public String getColumnName() { return "Path"; }
public Class getColumnClass() { return String.class; }
};
addColumn(cdm);
cdm = new ColumnDataModel() {
public Object getValue(Object key) {
if (_model == null) return null;
HttpUrl url = _model.getRequestUrl((ConversationID) key);
return url.getParameters();
}
public String getColumnName() { return "Parameters"; }
public Class getColumnClass() { return String.class; }
};
addColumn(cdm);