Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 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
  --%>
19
 
20
<%@ page import="org.apache.axis2.Constants"%>
21
<%@ page import="org.apache.axis2.context.ConfigurationContext"%>
22
<%@ page import="org.apache.axis2.context.ServiceContext"%>
23
<%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
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>Running Context Hierarchy</h1>
28
<%
29
    ConfigurationContext configContext = (ConfigurationContext) request.getSession().getAttribute(
30
            Constants.CONFIG_CONTEXT);
31
 
32
    String[] serviceGroupIds = configContext.getServiceGroupContextIDs();
33
    if (serviceGroupIds.length > 0) {
34
%>
35
<ul>
36
    <%
37
 
38
   for (int i = 0; i < serviceGroupIds.length; i++) {
39
        String groupContextID = serviceGroupIds[i];
40
        ServiceGroupContext groupContext = configContext.getServiceGroupContext(groupContextID);
41
        %>
42
           <li><%=groupContextID%><font color="blue"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=VIEW&ID=<%=groupContextID%>">
43
                    View</a></font>  <font color="red"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=DELETE&ID=<%=groupContextID%>">
44
                    Remove</a> </font></li>
45
        <%
46
        Iterator serviceContextItr = groupContext.getServiceContexts();
47
            %><ul><%
48
        while (serviceContextItr.hasNext()) {
49
            ServiceContext serviceContext = (ServiceContext)serviceContextItr.next();
50
             String serviceConID = serviceContext.getAxisService().getName();
51
        %>
52
            <li><%=serviceConID%><font color="blue"><a href="axis2-admin/viewServiceContext?TYPE=VIEW&ID=<%=serviceConID%>&PID=<%=groupContextID%>">
53
                    View</a></font></li>
54
        <%
55
        }
56
                %></ul><hr><%
57
    }
58
    %>  </ul>
59
        <%
60
            } else {%>
61
	<p>No running contexts were found on the system.</p>
62
            <%}
63
%>
64
<jsp:include page="include/adminfooter.inc"></jsp:include>