Author: batosai
Date: 2008-10-06 16:21:10 +0000 (Mon, 06 Oct 2008)
New Revision: 22952
Modified:
trunk/plugins/WoT/WoT.java
Log:
Removed useless code.
Modified: trunk/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/WoT.java 2008-10-05 22:00:21 UTC (rev 22951)
+++ trunk/plugins/WoT/WoT.java 2008-10-06 16:21:10 UTC (rev 22952)
@@ -169,22 +169,15 @@
public String handleHTTPGet(HTTPRequest request) throws
PluginHTTPException {
WebPage page;
- try {
- if(request.isParameterSet("ownidentities")) page = new
OwnIdentitiesPage(this, request);
- else if(request.isParameterSet("knownidentities")) page
= new KnownIdentitiesPage(this, request);
- else if(request.isParameterSet("configuration")) page =
new ConfigurationPage(this, request);
- else if(request.isParameterSet("getTrusters")) page =
new TrustersPage(this, request);
- else if(request.isParameterSet("getTrustees")) page =
new TrusteesPage(this, request);
- else {
- page = new HomePage(this, request);
- }
- page.make();
- return page.toHTML();
-
- } catch (Exception e) {
- e.printStackTrace();
- return e.getMessage();
- }
+ if(request.isParameterSet("ownidentities")) page = new
OwnIdentitiesPage(this, request);
+ else if(request.isParameterSet("knownidentities")) page = new
KnownIdentitiesPage(this, request);
+ else if(request.isParameterSet("configuration")) page = new
ConfigurationPage(this, request);
+ else if(request.isParameterSet("getTrusters")) page = new
TrustersPage(this, request);
+ else if(request.isParameterSet("getTrustees")) page = new
TrusteesPage(this, request);
+ else page = new HomePage(this, request);
+
+ page.make();
+ return page.toHTML();
}
public String handleHTTPPost(HTTPRequest request) throws
PluginHTTPException {