2004-07-24 02:06:07 +00:00
|
|
|
package net.i2p.router.web;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
|
2009-01-29 02:16:18 +00:00
|
|
|
public class ProfilesHelper extends HelperBase {
|
2009-11-24 20:20:30 +00:00
|
|
|
private boolean _full;
|
|
|
|
|
2004-07-24 02:06:07 +00:00
|
|
|
public ProfilesHelper() {}
|
|
|
|
|
2009-11-24 20:20:30 +00:00
|
|
|
public void setFull(String f) {
|
|
|
|
_full = f != null;
|
|
|
|
}
|
|
|
|
|
2009-10-15 22:42:22 +00:00
|
|
|
/** @return empty string, writes directly to _out */
|
2004-07-24 02:06:07 +00:00
|
|
|
public String getProfileSummary() {
|
|
|
|
try {
|
2009-10-15 22:42:22 +00:00
|
|
|
ProfileOrganizerRenderer rend = new ProfileOrganizerRenderer(_context.profileOrganizer(), _context);
|
2009-11-24 20:20:30 +00:00
|
|
|
rend.renderStatusHTML(_out, _full);
|
2004-07-24 02:06:07 +00:00
|
|
|
} catch (IOException ioe) {
|
|
|
|
ioe.printStackTrace();
|
|
|
|
}
|
2009-10-15 22:42:22 +00:00
|
|
|
return "";
|
2004-07-24 02:06:07 +00:00
|
|
|
}
|
2004-08-12 03:22:27 +00:00
|
|
|
|
2009-10-15 22:42:22 +00:00
|
|
|
/** @return empty string, writes directly to _out */
|
2004-08-12 03:22:27 +00:00
|
|
|
public String getShitlistSummary() {
|
|
|
|
try {
|
2009-11-11 20:28:13 +00:00
|
|
|
ShitlistRenderer rend = new ShitlistRenderer(_context);
|
|
|
|
rend.renderStatusHTML(_out);
|
2004-08-12 03:22:27 +00:00
|
|
|
} catch (IOException ioe) {
|
|
|
|
ioe.printStackTrace();
|
|
|
|
}
|
2009-10-15 22:42:22 +00:00
|
|
|
return "";
|
2004-08-12 03:22:27 +00:00
|
|
|
}
|
2004-07-24 02:06:07 +00:00
|
|
|
}
|