use of org.eclipse.ecf.bulletinboard.IForum in project ecf by eclipse.
the class PHPBB method getForums.
public List<IForum> getForums() {
if (cachedForums.isEmpty()) {
GetRequest request = new GetRequest(httpClient, url, "");
try {
request.execute();
String resp = request.getResponseBodyAsString();
request.releaseConnection();
cachedForums = getParser().parseForums(resp);
for (Forum forum : cachedForums.values()) {
forum.setBulletinBoard(this);
}
} catch (IOException e) {
// log.error(e);
}
}
return new ArrayList<IForum>(cachedForums.values());
}
use of org.eclipse.ecf.bulletinboard.IForum in project ecf by eclipse.
the class VBulletin method getForums.
public List<IForum> getForums() throws BBException {
if (cachedForums.isEmpty()) {
GetRequest request = new GetRequest(httpClient, url, "");
try {
request.execute();
String resp = request.getResponseBodyAsString();
request.releaseConnection();
cachedForums = getParser().parseForums(resp);
for (Forum forum : cachedForums.values()) {
forum.setBulletinBoard(this);
}
} catch (IOException e) {
// log.error(e);
}
}
return new ArrayList<IForum>(cachedForums.values());
}
Aggregations