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.description.Parameter, |
||
24 | java.util.ArrayList, |
||
25 | java.util.Iterator"%> |
||
26 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
27 | <jsp:include page="include/adminheader.jsp"></jsp:include> |
||
28 | <h1>Edit Service Parameters</h1> |
||
29 | <form method="get" name="editServicepara" action="axis2-admin/editServicepara"> |
||
30 | <% |
||
31 | AxisService axisService = (AxisService)request.getSession(). |
||
32 | getAttribute(Constants.SERVICE); |
||
33 | if(axisService != null ){ |
||
34 | %> <table width="100%"> |
||
35 | |||
36 | <tr> |
||
37 | <td colspan="2" ><b> |
||
38 | <% |
||
39 | String servicName = axisService.getName(); |
||
40 | %>Service Parameters :: <%=servicName%> |
||
41 | </b></td> |
||
42 | </tr> |
||
43 | <tr> |
||
44 | <td colspan="2" ><input style="display:none" name="axisService" value="<%=servicName%>"></td> |
||
45 | </tr> |
||
46 | <% |
||
47 | ArrayList service_para = axisService.getParameters(); |
||
48 | for (int i = 0; i < service_para.size(); i++) { |
||
49 | Parameter parameter = (Parameter) service_para.get(i); |
||
50 | if (parameter.getParameterType()==Parameter.OM_PARAMETER) { |
||
51 | continue; |
||
52 | } |
||
53 | %> |
||
54 | <tr> |
||
55 | <td><%=parameter.getName()%></td> |
||
56 | <td><input type="text" value="<%=parameter.getValue()%>" |
||
57 | name="<%=(servicName + "_" + parameter.getName())%>" size="50"> |
||
58 | </td> |
||
59 | </tr> |
||
60 | <% |
||
61 | } |
||
62 | Iterator operations = axisService.getOperations(); |
||
63 | if(operations.hasNext()){ |
||
64 | %> |
||
65 | <tr> |
||
66 | <td> </td> |
||
67 | <td> </td> |
||
68 | </tr> |
||
69 | <tr> |
||
70 | <td colspan="2" > <b>Operation Paramaters :: </b> |
||
71 | </td> |
||
72 | </tr> |
||
73 | <% |
||
74 | } |
||
75 | |||
76 | ArrayList op_paras ; |
||
77 | operations = axisService.getOperations(); |
||
78 | while (operations.hasNext()) { |
||
79 | AxisOperation axisOperation = (AxisOperation) operations.next(); |
||
80 | String operationName = axisOperation.getName().getLocalPart(); |
||
81 | %> |
||
82 | <tr> |
||
83 | <td colspan="2" > </td> |
||
84 | </tr> |
||
85 | <tr> |
||
86 | <td colspan="2" ><b>Operation : <%=operationName%></b></td> |
||
87 | </tr> |
||
88 | <% |
||
89 | op_paras = axisOperation.getParameters(); |
||
90 | for (int i = 0; i < op_paras.size(); i++) { |
||
91 | Parameter parameter = (Parameter) op_paras.get(i); |
||
92 | if (parameter.getParameterType()==Parameter.OM_PARAMETER) { |
||
93 | continue; |
||
94 | } |
||
95 | %> |
||
96 | <tr> |
||
97 | <td><%=parameter.getName()%></td> |
||
98 | <td><input type="text" value="<%=parameter.getValue()%>" |
||
99 | name="<%=(operationName + "_" + parameter.getName())%>" size="50"> |
||
100 | </td> |
||
101 | </tr> |
||
102 | <% |
||
103 | } |
||
104 | } |
||
105 | %> |
||
106 | <tr> |
||
107 | <td> </td> |
||
108 | <td> |
||
109 | <input name="changePara" type="submit" value=" Change " > |
||
110 | </td> |
||
111 | </tr> |
||
112 | </table> |
||
113 | <% |
||
114 | } else { |
||
115 | %> |
||
116 | <p><%=request.getAttribute("status")%></p> |
||
117 | <% |
||
118 | } |
||
119 | |||
120 | %> |
||
121 | <form> |
||
122 | <jsp:include page="include/adminfooter.inc"></jsp:include> |