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
                 org.apache.axis2.description.AxisOperation,
22
                 org.apache.axis2.description.AxisService,
23
                 org.apache.axis2.engine.Handler,
24
                 org.apache.axis2.engine.Phase,
25
                 java.util.ArrayList,
26
                 java.util.List,
27
                 java.util.Iterator"%>
28
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
29
<html>
30
<jsp:include page="include/adminheader.jsp"></jsp:include>
31
<h1>View Operation Specific Chains</h1>
32
   <%
33
            AxisService axisService = (AxisService)request.getSession().
34
                    getAttribute(Constants.SERVICE_HANDLERS);
35
             if(axisService != null ){
36
                List handlers ;
37
                Iterator operations =  axisService.getOperations();
38
                 while (operations.hasNext()) {
39
                     AxisOperation axisOperationon = (AxisOperation) operations.next();
40
                     %><h2>Operation Name : <%=axisOperationon.getName().getLocalPart()%></h2><%
41
                     ArrayList phases = axisOperationon.getRemainingPhasesInFlow();
42
                 %>
43
                 <h3> In Flow </h3>
44
                 <ul>
45
                 <%
46
                 for (int i = 0; i < phases.size(); i++) {
47
                     Phase phase = (Phase) phases.get(i);
48
                     %>
49
                     <li>Phase Name :  <%=phase.getPhaseName()%></li>
50
                     <ul>
51
                     <%
52
                      handlers = phase.getHandlers();
53
                      for (int j = 0; j < handlers.size(); j++) {
54
                          Handler handler = (Handler) handlers.get(j);
55
                          %>
56
                          <li>Handler Name : <%=handler.getHandlerDesc().getName()%></li>
57
                          <%
58
                      }
59
                     %>
60
                     </ul>
61
                 <%
62
                 }
63
                 %>
64
                 </ul>
65
                 <%
66
                 phases = axisOperationon.getPhasesInFaultFlow();
67
                 %>
68
                 <h3> In Fault Flow </h3>
69
                 <ul>
70
                 <%
71
                 for (int i = 0; i < phases.size(); i++) {
72
                     Phase phase = (Phase) phases.get(i);
73
                     %>
74
                     <li>Phase Name  : <%=phase.getPhaseName()%></li>
75
                     <ul>
76
                     <%
77
                      handlers = phase.getHandlers();
78
                      for (int j = 0; j < handlers.size(); j++) {
79
                          Handler handler = (Handler) handlers.get(j);
80
                          %>
81
                          <li>Handler Name : <%=handler.getHandlerDesc().getName()%></li>
82
                          <%
83
                      }
84
                     %>
85
                     </ul>
86
                 <%
87
                 }
88
                 %>
89
                 </ul>
90
                 <%
91
 
92
                 phases = axisOperationon.getPhasesOutFlow();
93
                 %>
94
                 <h3> Out Flow </h3>
95
                 <ul>
96
                 <%
97
                 for (int i = 0; i < phases.size(); i++) {
98
                     Phase phase = (Phase) phases.get(i);
99
                     %>
100
                     <li>Phase Name : <%=phase.getPhaseName()%></li>
101
                     <ul>
102
                     <%
103
                      handlers = phase.getHandlers();
104
                      for (int j = 0; j < handlers.size(); j++) {
105
                          Handler handler = (Handler) handlers.get(j);
106
                          %>
107
                          <li>Handler Name : <%=handler.getHandlerDesc().getName()%></li>
108
                          <%
109
                      }
110
                     %>
111
                     </ul>
112
                 <%
113
                 }
114
                 %>
115
                 </ul>
116
                 <%
117
                 phases = axisOperationon.getPhasesOutFaultFlow();
118
                 %>
119
                 <h3> Out Fault Flow </h3>
120
                 <ul>
121
                 <%
122
                 for (int i = 0; i < phases.size(); i++) {
123
                     Phase phase = (Phase) phases.get(i);
124
                     %>
125
                     <li>Phase Name : <%=phase.getPhaseName()%></li>
126
                     <ul>
127
                     <%
128
                      handlers = phase.getHandlers();
129
                      for (int j = 0; j < handlers.size(); j++) {
130
                          Handler handler = (Handler) handlers.get(j);
131
                          %>
132
                          <li>Handler Name : <%=handler.getHandlerDesc().getName()%></li>
133
                          <%
134
                      }
135
                     %>
136
                     </ul>
137
                 <%
138
                 }
139
                 %>
140
                 </ul>
141
                 <%
142
 
143
             }
144
                 }
145
 
146
              %>
147
<jsp:include page="include/adminfooter.inc"></jsp:include>