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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
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>
32 String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) + "/";
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);
40 <h3>This Axis service has deployment faults.</h3><%
41 %><font color="red"><%=(String) errornessservices.get(servicName) %></font>
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>
55 boolean disableREST = false;
56 AxisConfiguration axisConfiguration = axisService.getAxisConfiguration();
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());
71 String serviceDescription = axisService.getServiceDescription();
72 if (serviceDescription == null || "".equals(serviceDescription)) {
73 serviceDescription = "No description available for this service";
76 <h4>Service Description : <font color="black"><%=serviceDescription%></font></h4>
78 <i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br>
80 if (opItr.hasNext()) {
81 %><i>Available operations</i><%
83 %><i> There are no Operations specified</i><%
85 opItr = axisService.getOperations();
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()%>--%>
97 <h3><font color="red">No services found in this location</font></h3>
103 <jsp:include page="include/adminfooter.inc"/>