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.AxisService,
25 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
26 <jsp:include page="include/adminheader.jsp"></jsp:include>
27 <h1>Deactivate Service</h1>
28 <form method="get" name="serviceInActivate" action="axis2-admin/deactivateService">
29 <table width="100%" border="0">
32 <p>Only the services that are active are listed below. Note that although you can activate a service from this page, once system is restarted the service will be active again</p>
37 HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
38 Collection col = services.values();
42 for (Iterator iterator = col.iterator(); iterator.hasNext();) {
43 AxisService axisServices = (AxisService) iterator.next();
44 if(axisServices.isActive()){
46 html += "<option value='" + axisServices.getName() + "'>";
47 html += axisServices.getName() + "</option>";
50 request.getSession().setAttribute(Constants.SERVICE_MAP,null);
54 <td width="20%"> Select Service : </td>
56 <select name="axisService" class="selectBoxes">
62 <td width="20%">Deactivate Service </td>
63 <td width="80%"><input type="checkbox" name="turnoff">
69 <input name="submit" type="submit" value=" Deactivate " >
70 <input name="reset" type="reset" value=" Clear " >
75 <td colspan="2">No active services present.</td>
83 <jsp:include page="include/adminfooter.inc"></jsp:include>