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
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>
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()){
36 String moduleDescription ;
37 Collection moduleNames = moduleMap.values();
38 for (Iterator iterator = moduleNames.iterator(); iterator.hasNext();) {
40 AxisModule moduleQName = (AxisModule) iterator.next();
41 modulename = moduleQName.getName();
42 moduleDescription = moduleQName.getModuleDescription();
43 if(moduleDescription==null){
44 moduleDescription = "[ -- No module description found --]";
52 %><li><b><%=modulename%></b> : <%=moduleDescription%></li>
62 <%if(errornesModules.size()>0){
64 <h3><font color="red">Faulty Modules</font></h3>
66 Enumeration faultyModules = errornesModules.keys();
67 while (faultyModules.hasMoreElements()) {
69 String faultyModuleName = (String) faultyModules.nextElement();
70 %><a href="errorModule.jsp?moduleName=<%=faultyModuleName%>">
71 <%=faultyModuleName%></a>
77 <h2><font color="blue">There are no modules deployed in the system.</font></h2>
81 <jsp:include page="include/adminfooter.inc"></jsp:include>