KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enhydraManager > presentation > ApplicationManager


1 package enhydraManager.presentation;
2
3 import enhydraManager.spec.*;
4
5 // Standard imports
6
import java.util.Vector JavaDoc;
7 import java.io.IOException JavaDoc;
8
9 // Enhydra SuperServlet imports
10

11 import org.w3c.dom.html.HTMLAnchorElement;
12 import org.w3c.dom.html.HTMLMetaElement;
13 import org.w3c.dom.Node JavaDoc;
14 import com.lutris.appserver.server.httpPresentation.*;
15 public class ApplicationManager implements HttpPresentation {
16
17   
18
19   public void run(HttpPresentationComms comms) throws HttpPresentationException,ClientPageRedirectException, IOException JavaDoc {
20
21   AppManager manager=AppManagerFactory.getManager("enhydraManager.business.AppManagerImpl");
22   String JavaDoc service=comms.request.getParameter("service");
23   String JavaDoc host = comms.request.getParameter("host");
24   String JavaDoc app = comms.request.getParameter("id");
25   String JavaDoc action = comms.request.getParameter("action");
26  
27   String JavaDoc message=manager.manage(service,host,app,action);
28    
29    throw new ClientPageRedirectException(
30                       comms.request.getAppFileURIPath("ListPresentation.po?message="+message));
31     
32    
33    
34   }
35
36
37  
38
39 }
40
41
Popular Tags