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 | --%> <%@ page import="org.apache.axis2.Constants,
|
---|
19 | org.apache.axis2.description.AxisModule,
|
---|
20 | java.util.Collection"%>
|
---|
21 | <%@ page import="java.util.Enumeration"%>
|
---|
22 | <%@ page import="java.util.HashMap"%>
|
---|
23 | <%@ page import="java.util.Hashtable"%>
|
---|
24 | <%@ page import="java.util.Iterator"%>
|
---|
25 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
---|
26 | <jsp:include page="include/adminheader.jsp"></jsp:include>
|
---|
27 | <h1>Available Modules</h1>
|
---|
28 | <%
|
---|
29 | boolean foundModules = false;
|
---|
30 | boolean wroteUL = false;
|
---|
31 | HashMap moduleMap = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
|
---|
32 | request.getSession().setAttribute(Constants.MODULE_MAP,null);
|
---|
33 | Hashtable errornesModules =(Hashtable)request.getSession().getAttribute(Constants.ERROR_MODULE_MAP);
|
---|
34 | if (moduleMap!=null && !moduleMap.isEmpty()){
|
---|
35 | String modulename ;
|
---|
36 | String moduleDescription ;
|
---|
37 | Collection moduleNames = moduleMap.values();
|
---|
38 | for (Iterator iterator = moduleNames.iterator(); iterator.hasNext();) {
|
---|
39 | foundModules = true;
|
---|
40 | AxisModule moduleQName = (AxisModule) iterator.next();
|
---|
41 | modulename = moduleQName.getName();
|
---|
42 | moduleDescription = moduleQName.getModuleDescription();
|
---|
43 | if(moduleDescription==null){
|
---|
44 | moduleDescription = "[ -- No module description found --]";
|
---|
45 | }
|
---|
46 | if (!wroteUL){
|
---|
47 | wroteUL = true;
|
---|
48 | %>
|
---|
49 | <ul>
|
---|
50 | <%
|
---|
51 | }
|
---|
52 | %><li><b><%=modulename%></b> : <%=moduleDescription%></li>
|
---|
53 | <%
|
---|
54 | }
|
---|
55 | if (wroteUL){
|
---|
56 | %>
|
---|
57 | </ul>
|
---|
58 | <%
|
---|
59 | }
|
---|
60 | }
|
---|
61 | %>
|
---|
62 | <%if(errornesModules.size()>0){
|
---|
63 | %>
|
---|
64 | <h3><font color="red">Faulty Modules</font></h3>
|
---|
65 | <%
|
---|
66 | Enumeration faultyModules = errornesModules.keys();
|
---|
67 | while (faultyModules.hasMoreElements()) {
|
---|
68 | foundModules = true;
|
---|
69 | String faultyModuleName = (String) faultyModules.nextElement();
|
---|
70 | %><a href="errorModule.jsp?moduleName=<%=faultyModuleName%>">
|
---|
71 | <%=faultyModuleName%></a>
|
---|
72 | <%
|
---|
73 | }
|
---|
74 | }
|
---|
75 | if(! foundModules) {
|
---|
76 | %>
|
---|
77 | <h2><font color="blue">There are no modules deployed in the system.</font></h2>
|
---|
78 | <%
|
---|
79 | }
|
---|
80 | %>
|
---|
81 | <jsp:include page="include/adminfooter.inc"></jsp:include> |
---|