]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.apache.axis2.facet/exploadedwar/axis2-web/listGroupService.jsp
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / .metadata / .plugins / org.apache.axis2.facet / exploadedwar / axis2-web / listGroupService.jsp
1 <%--
2   ~ Licensed to the Apache Software Foundation (ASF) under one
3   ~ or more contributor license agreements. See the NOTICE file
4   ~ distributed with this work for additional information
5   ~ regarding copyright ownership. The ASF licenses this file
6   ~ to you under the Apache License, Version 2.0 (the
7   ~ "License"); you may not use this file except in compliance
8   ~ with the License. You may obtain a copy of the License at
9   ~
10   ~ http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing,
13   ~ software distributed under the License is distributed on an
14   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   ~ KIND, either express or implied. See the License for the
16   ~ specific language governing permissions and limitations
17   ~ under the License.
18   --%>
19
20 <%@ page import="org.apache.axis2.Constants" %>
21 <%@ page import="org.apache.axis2.description.AxisModule" %>
22 <%@ page import="org.apache.axis2.description.AxisOperation" %>
23 <%@ page import="org.apache.axis2.description.AxisService" %>
24 <%@ page import="java.util.Collection" %>
25 <%@ page import="java.util.HashMap" %>
26 <%@ page import="java.util.Iterator" %>
27 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
28 <html>
29 <head>
30   <jsp:include page="include/httpbase.jsp"/>
31   <title>List Services</title>
32   <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css" />
33 </head>
34
35 <body>
36 <jsp:include page="include/adminheader.jsp"/>
37 <h1>Available services</h1>
38 <%
39   String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"/";
40 %>
41 <%
42     HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
43     request.getSession().setAttribute(Constants.SERVICE_MAP,null);
44     AxisService axisService = (AxisService) serviceMap.get(request.getParameter("serviceName"));
45     if (axisService != null) {
46         Iterator operations;
47         String serviceName;
48         operations = axisService.getOperations();
49         serviceName = axisService.getName();
50 %><hr>
51
52 <h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a>
53 </font></h2>
54 <font color="blue">Service EPR :</font><font color="black"><%=prefix + axisService.getName()%></font>
55 <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></font></h4>
56 <i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br/>
57 <%
58   Collection engagedModules = axisService.getEngagedModules();
59   String moduleName;
60   if (engagedModules.size() > 0) {
61 %>
62 <i>Engaged Modules for the Axis Service</i><ul>
63   <%
64     for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
65       AxisModule axisOperation = (AxisModule) iteratorm.next();
66       moduleName = axisOperation.getName();
67   %><li><%=moduleName%></li>
68   <%
69     }%>
70 </ul>
71 <%
72   }
73   if (operations.hasNext()) {
74 %><br><i>Available operations</i><%
75 } else {
76 %><i> There are no operations specified</i><%
77   }
78 %><ul><%
79   operations = axisService.getOperations();
80   while (operations.hasNext()) {
81     AxisOperation axisOperation = (AxisOperation) operations.next();
82 %><li><%=axisOperation.getName().getLocalPart()%></li>
83   <%
84     engagedModules = axisOperation.getEngagedModules();
85     if (engagedModules.size() > 0) {
86   %>
87   <br><i>Engaged Modules for the Operation</i><ul>
88   <%
89     for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
90       AxisModule moduleDecription = (AxisModule) iterator2.next();
91       moduleName = moduleDecription.getName();
92   %><li><%=moduleName%></li><br><%
93   }
94 %></ul><%
95     }
96
97   }
98 %></ul>
99 <%
100   }
101 %>
102 <jsp:include page="include/adminfooter.inc"/>
103 </body>
104 </html>