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.ServiceContext" %> |
||
21 | <%@ page import="java.util.Iterator" %> |
||
22 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
23 | <jsp:include page="include/adminheader.jsp"/> |
||
24 | <h1>Running Context Hierarchy</h1> |
||
25 | <% |
||
26 | ServiceContext serviceContext = (ServiceContext) request.getSession().getAttribute("ServiceContext"); |
||
27 | String type = (String) request.getSession().getAttribute("TYPE"); |
||
28 | if (serviceContext != null) { |
||
29 | if (type != null) { |
||
30 | if ("VIEW".equals(type)) { |
||
31 | Iterator propertyNames = serviceContext.getPropertyNames(); |
||
32 | %> |
||
33 | <h4>Persistance Properties</h4><ul> |
||
34 | <% |
||
35 | while (propertyNames.hasNext()) { |
||
36 | String key = (String) propertyNames.next(); |
||
37 | Object property = serviceContext.getProperty(key); |
||
38 | %> |
||
39 | <li><%=key%> : <%=property.toString()%></li> |
||
40 | <% |
||
41 | } |
||
42 | %></ul> |
||
43 | <% |
||
44 | } |
||
45 | } else { |
||
46 | %> <h4>No Service Context Found</h4><% |
||
47 | } |
||
48 | } |
||
49 | %> |
||
50 | <jsp:include page="include/adminfooter.inc"/> |