1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.webservice; 27 28 import java.io.IOException ; 29 import java.util.Collection ; 30 31 import javax.servlet.ServletException ; 32 import javax.servlet.http.HttpServletRequest ; 33 import javax.servlet.http.HttpServletResponse ; 34 35 import org.allesta.wsabi.j2ee.provider.GenericDomainCapableProvider; 36 import org.allesta.wsabi.j2ee.provider.jonas.JonasProvider; 37 import org.apache.struts.action.ActionForm; 38 import org.apache.struts.action.ActionForward; 39 import org.apache.struts.action.ActionMapping; 40 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 41 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 42 43 46 47 public class ListWebServiceAction extends JonasBaseAction { 48 49 51 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 52 , HttpServletRequest p_Request, HttpServletResponse p_Response) 53 throws IOException , ServletException { 54 55 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) + WhereAreYou.NODE_SEPARATOR 57 + "services" + WhereAreYou.NODE_SEPARATOR + "WebService", true); 58 59 try{ 60 GenericDomainCapableProvider jonasProvider = new JonasProvider(); 61 jonasProvider.initialize(m_WhereAreYou.getCurrentJonasServerName(), null); 62 Collection wsc = jonasProvider.getWebServiceDescription(); 63 p_Request.setAttribute("listWebServiceDescription", wsc); 65 } 66 catch (Throwable t) { 67 addGlobalError(t); 68 saveErrors(p_Request, m_Errors); 69 return (p_Mapping.findForward("Global Error")); 70 } 71 return (p_Mapping.findForward("WebService Descriptions")); 73 } 74 75 76 77 } 78 | Popular Tags |