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 org.apache.axis2.description.AxisModule,
24 java.util.Iterator" %>
25 <%@ page import="org.apache.axis2.util.Utils" %>
27 <jsp:include page="include/adminheader.jsp"/>
29 String status = (String) request.getSession().getAttribute(Constants.ENGAGE_STATUS);
31 <h1>Engage Module Globally</h1>
33 <p>To engage a module on all services across the system, select a module from the combo box below
34 and click on the "Engage" button. Any module that needs to place handlers into the pre-dispatch
35 phase needs to be engaged globally.</p>
37 <form method="get" name="selectModuleForm" action="axis2-admin/engagingglobally">
38 <table border="0" width="100%" cellspacing="1" cellpadding="1">
40 <td width="15%">Select a Module :</td>
41 <td width="75%" align="left">
42 <select name="modules">
44 HashMap modules = (HashMap) request.getSession().getAttribute(Constants.MODULE_MAP);
45 request.getSession().setAttribute(Constants.MODULE_MAP,null);
46 Collection moduleCol = modules.values();
47 for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
48 AxisModule axisOperation = (AxisModule) iterator.next();
49 String modulename = axisOperation.getName();
51 <option align="left" value="<%=modulename%>"><%=modulename%>
61 <input name="submit" type="submit" value=" Engage ">
69 <p style="color:blue"><%=Utils.sanitizeWebOutput(status)%></p>
72 <jsp:include page="include/adminfooter.inc"/>