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