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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
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" %>
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" />
36 <jsp:include page="include/adminheader.jsp"/>
37 <h1>Available services</h1>
39 String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"/";
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) {
48 operations = axisService.getOperations();
49 serviceName = axisService.getName();
52 <h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a>
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/>
58 Collection engagedModules = axisService.getEngagedModules();
60 if (engagedModules.size() > 0) {
62 <i>Engaged Modules for the Axis Service</i><ul>
64 for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
65 AxisModule axisOperation = (AxisModule) iteratorm.next();
66 moduleName = axisOperation.getName();
67 %><li><%=moduleName%></li>
73 if (operations.hasNext()) {
74 %><br><i>Available operations</i><%
76 %><i> There are no operations specified</i><%
79 operations = axisService.getOperations();
80 while (operations.hasNext()) {
81 AxisOperation axisOperation = (AxisOperation) operations.next();
82 %><li><%=axisOperation.getName().getLocalPart()%></li>
84 engagedModules = axisOperation.getEngagedModules();
85 if (engagedModules.size() > 0) {
87 <br><i>Engaged Modules for the Operation</i><ul>
89 for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
90 AxisModule moduleDecription = (AxisModule) iterator2.next();
91 moduleName = moduleDecription.getName();
92 %><li><%=moduleName%></li><br><%
102 <jsp:include page="include/adminfooter.inc"/>