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.context.ConfigurationContext"%>
21
<%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
22
<%@ page import="java.util.Iterator"%>
23
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
24
<jsp:include page="include/adminheader.jsp"></jsp:include>
25
<h1>Runing Context hierachy</h1>
26
<%
27
    String type = (String) request.getSession().getAttribute("TYPE");
28
    ConfigurationContext configCtx = (ConfigurationContext) request.getSession().getAttribute("ConfigurationContext");
29
    ServiceGroupContext sgContext = (ServiceGroupContext) request.getSession().getAttribute("ServiceGroupContext");
30
    if (sgContext != null) {
31
        if (type != null) {
32
            if ("VIEW".equals(type)) {
33
              Iterator propertyNames = sgContext.getPropertyNames();
34
%>
35
             <h4>Persistance properties</h4><ul>
36
             <%
37
                 while (propertyNames.hasNext()) {
38
                     String key = (String) propertyNames.next();
39
                     Object property =  sgContext.getProperty(key);
40
              %>
41
                   <li><%=key%> : <%=property.toString()%></li>
42
              <%
43
                 }
44
                 %></ul>
45
                 <%
46
            }   else if("DELETE".equals(type)){
47
                 configCtx.removeServiceGroupContext(sgContext.getId());
48
                 %>Removed the context<%
49
            }
50
        }
51
    } else {
52
%> <h4>No service group context found</h4><%
53
    }
54
%>
55
<jsp:include page="include/adminfooter.inc"></jsp:include>