source: gs3-extensions/pharos/trunk/web/axis2-web/listGroupService.jsp@ 20983

Last change on this file since 20983 was 20983, checked in by davidb, 14 years ago

Initial files for Phrasos extension to Greenstone3

File size: 3.8 KB
RevLine 
[20983]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</jsp:include>
38<h1>Available services</h1>
39<%
40 String prifix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"/";
41%>
42<%
43 HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
44 request.getSession().setAttribute(Constants.SERVICE_MAP,null);
45 String servicName = request.getParameter("serviceName");
46 AxisService axisService = (AxisService) serviceMap.get(servicName);
47 if (axisService != null) {
48 Iterator operations;
49 String serviceName;
50 operations = axisService.getOperations();
51 serviceName = axisService.getName();
52%><hr>
53
54<h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a>
55</font></h2>
56<font color="blue">Service EPR :</font><font color="black"><%=prifix + axisService.getName()%></font>
57<h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></font></h4>
58<i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br/>
59<%
60 Collection engagedModules = axisService.getEngagedModules();
61 String moduleName;
62 if (engagedModules.size() > 0) {
63%>
64<i>Engaged Modules for the Axis Service</i><ul>
65 <%
66 for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
67 AxisModule axisOperation = (AxisModule) iteratorm.next();
68 moduleName = axisOperation.getName();
69 %><li><%=moduleName%></li>
70 <%
71 }%>
72</ul>
73<%
74 }
75 if (operations.hasNext()) {
76%><br><i>Available operations</i><%
77} else {
78%><i> There are no operations specified</i><%
79 }
80%><ul><%
81 operations = axisService.getOperations();
82 while (operations.hasNext()) {
83 AxisOperation axisOperation = (AxisOperation) operations.next();
84%><li><%=axisOperation.getName().getLocalPart()%></li>
85 <%
86 engagedModules = axisOperation.getEngagedModules();
87 if (engagedModules.size() > 0) {
88 %>
89 <br><i>Engaged Modules for the Operation</i><ul>
90 <%
91 for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
92 AxisModule moduleDecription = (AxisModule) iterator2.next();
93 moduleName = moduleDecription.getName();
94 %><li><%=moduleName%></li><br><%
95 }
96%></ul><%
97 }
98
99 }
100%></ul>
101<%
102 }
103%>
104<jsp:include page="include/adminfooter.inc">
105</jsp:include>
106</body>
107</html>
Note: See TracBrowser for help on using the repository browser.