]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.apache.axis2.facet/exploadedwar/axis2-web/listSingleService.jsp
Salome HOME
SIMAN Eclipse workspace first version
[tools/siman.git] / Workspace / .metadata / .plugins / org.apache.axis2.facet / exploadedwar / axis2-web / listSingleService.jsp
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 <%@ page import="org.apache.axis2.description.AxisService" %>
23 <%@ page import="org.apache.axis2.description.Parameter" %>
24 <%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
25 <%@ page import="org.apache.axis2.util.JavaUtils" %>
26 <%@ page import="java.util.Hashtable" %>
27 <%@ page import="java.util.Iterator" %>
28 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
29 <jsp:include page="include/adminheader.jsp"/>
30 <h1>List Single Service</h1>
31 <%
32     String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) + "/";
33 %>
34 <%
35     String isFault = (String) request.getSession().getAttribute(Constants.IS_FAULTY);
36     String servicName = request.getParameter("serviceName");
37     if (Constants.IS_FAULTY.equals(isFault)) {
38         Hashtable errornessservices = (Hashtable) request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
39 %>
40 <h3>This Axis service has deployment faults.</h3><%
41 %><font color="red"><%=(String) errornessservices.get(servicName) %></font>
42 <%
43
44 } else {
45
46     AxisService axisService =
47             (AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
48     if (axisService != null) {
49         Iterator opItr = axisService.getOperations();
50         //operationsList = operations.values();
51         String serviceName = axisService.getName();
52 %><h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
53 <font color="blue">Service EPR : </font><font color="black"><%=prefix + axisService.getName()%></font><br>
54 <%
55     boolean disableREST = false;
56     AxisConfiguration axisConfiguration = axisService.getAxisConfiguration();
57
58     Parameter parameter;
59
60     // do we need to completely disable REST support
61     parameter = axisConfiguration.getParameter(Constants.Configuration.DISABLE_REST);
62     if (parameter != null) {
63         disableREST = !JavaUtils.isFalseExplicitly(parameter.getValue());
64     }
65     if (!disableREST ) {
66 %>
67 <%
68     }
69
70
71     String serviceDescription = axisService.getServiceDescription();
72     if (serviceDescription == null || "".equals(serviceDescription)) {
73         serviceDescription = "No description available for this service";
74     }
75 %>
76 <h4>Service Description : <font color="black"><%=serviceDescription%></font></h4>
77
78 <i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br>
79 <%
80     if (opItr.hasNext()) {
81 %><i>Available operations</i><%
82 } else {
83 %><i> There are no Operations specified</i><%
84     }
85     opItr = axisService.getOperations();
86 %><ul><%
87     while (opItr.hasNext()) {
88         AxisOperation axisOperation = (AxisOperation) opItr.next();
89 %><li><%=axisOperation.getName().getLocalPart()%></li>
90     <%--                <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
91     <%
92         }
93     %></ul>
94 <%
95 } else {
96 %>
97 <h3><font color="red">No services found in this location</font></h3>
98 <%
99         }
100
101     }
102 %>
103 <jsp:include page="include/adminfooter.inc"/>