JWS-111 & JWS-109 Fixed some typos.
[jabaws.git] / website / statpages / ServicesStatus.jsp
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
3 <%--
4 Author: Peter Troshin
5 Date: May 2011
6 This is a JSP fragment to be inserted into document, cannot be used alone
7 TODO refactor
8 --%>
9 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
10 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
11 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
12 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
13
14 <c:import url="../template_header.jsp" >
15         <c:param name="title">Service Status</c:param>
16         <c:param name="html_custom_css"><link href="${pageContext.request.contextPath}/static/css/table.css"
17                                                                                   rel="stylesheet"></c:param>
18 </c:import>
19
20 <div class="row" id="mainpage">
21         <div class="col-md-12">
22                 <div class="panel panel-default">
23                         <div class="panel panel-heading">
24                                 <h1 class="panel-title">JABAWS Service Status</h1>
25                         </div>
26                         <div class="panel-body">
27
28                                 <div style="margin: 20px ">
29
30                                         <c:set var="host" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />
31
32                                         <ul>
33                                                 <li>
34                                                         This servlet tests if the web services are healthy on the tomcat instance on which JABAWS is deployed. <br/>
35                                                         If the tomcat instance is mapped to another "proxy" web server, the servlet does not test availability of <br/>
36                                                         the web services at the endpoints of this external web server.</li>
37                                                 <li>All the web services are tested while this page is being loaded.</li>
38                                                 <li>If you want to test the services again, reload this page.</li>
39                                                 <li>Click on the service status to see the results of the testing.</li>
40                                                 <li>Server tested: <a href="${host}">${host}</a> </li>
41                                                 <li>Time of execusion: ${timeexec} msec</li>
42                                                 <li> Your IP is ${pageContext.request.remoteAddr}</li>
43                                         </ul>
44                                         <br/>
45                                         <h3 style="text-align: center;color: green">
46                                                 Alignment Web Services
47                                         </h3>
48                                         <table class="its" >
49                                                 <thead>
50                                                 <tr>
51                                                         <th title="Service name" width="100px">Service</th>
52                                                         <th title="Service status">Version</th>
53                                                         <th title="Service status">Status</th>
54                                                         <th title="Service details">Reference and more details</th>
55                                                 </tr>
56                                                 </thead>
57                                                 <c:forEach items="${results}" var="res" varStatus="status">
58                                                         <c:if test="${res.group=='alignment'}">
59                                                                 <c:if test="${status.count%2==0}">
60                                                                         <tr class="even">
61                                                                 </c:if><c:if test="${status.count%2!=0}">
62                                                                 <tr class="odd">
63                                                         </c:if>
64                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
65                                                                 <td>${res.version}</td>
66                                                                 <c:if test="${res.status}">
67                                                                         <td><div class="source">
68                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
69                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
70                                                                                 <div class="body collapsed" style="max-width: 400px;">
71                                                                                         <pre>${res.details}</pre>
72                                                                                 </div></div></td>
73                                                                 </c:if>
74                                                                 <c:if test="${!res.status}">
75                                                                         <td><div class="source">
76                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
77                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
78                                                                                 <div class="body collapsed" style="max-width: 400px;">
79                                                                                         <pre>${res.details}</pre>
80                                                                                 </div></div></td>
81                                                                 </c:if>
82                                                                 <td><div class="source">
83                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
84                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
85                                                                         <div class="body collapsed" style="max-width: 500px;">
86                                                                                 <pre>${res.reference}</pre>
87                                                                         </div></div></td>
88                                                                 </tr>
89                                                         </c:if>
90                                                 </c:forEach>
91                                         </table>
92
93                                         <br/>
94                                         <br/>
95                                         <h3 style="text-align: center;color: green;">
96                                                 Disorder Web Services
97                                         </h3>
98                                         <table class="its" >
99                                                 <thead>
100                                                 <tr>
101                                                         <th title="Service name" width="100px">Service</th>
102                                                         <th title="Service status">Version</th>
103                                                         <th title="Service status">Status</th>
104                                                         <th title="Service details">Reference and more details</th>
105                                                 </tr>
106                                                 </thead>
107                                                 <c:forEach items="${results}" var="res" varStatus="status">
108                                                         <c:if test="${res.group=='disorder'}">
109                                                                 <c:if test="${status.count%2==0}">
110                                                                         <tr class="even">
111                                                                 </c:if><c:if test="${status.count%2!=0}">
112                                                                 <tr class="odd">
113                                                         </c:if>
114                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
115                                                                 <td>${res.version}</td>
116                                                                 <c:if test="${res.status}">
117                                                                         <td><div class="source">
118                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
119                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
120                                                                                 <div class="body collapsed" style="max-width: 400px;">
121                                                                                         <pre>${res.details}</pre>
122                                                                                 </div></div></td>
123                                                                 </c:if>
124                                                                 <c:if test="${!res.status}">
125                                                                         <td><div class="source">
126                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
127                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
128                                                                                 <div class="body collapsed" style="max-width: 400px;">
129                                                                                         <pre>${res.details}</pre>
130                                                                                 </div></div></td>
131                                                                 </c:if>
132                                                                 <td><div class="source">
133                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
134                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
135                                                                         <div class="body collapsed" style="max-width: 500px;">
136                                                                                 <pre>${res.reference}</pre>
137                                                                         </div></div></td>
138                                                                 </tr>
139                                                         </c:if>
140                                                 </c:forEach>
141                                         </table>
142
143                                         <br/>
144                                         <br/>
145                                         <h3 style="text-align: center;color: green;">
146                                                 Other Web Services
147                                         </h3>
148                                         <table class="its" >
149                                                 <thead>
150                                                 <tr>
151                                                         <th title="Service name" width="100px">Service</th>
152                                                         <th title="Service status">Version</th>
153                                                         <th title="Service status">Status</th>
154                                                         <th title="Service details">Reference and more details</th>
155                                                 </tr>
156                                                 </thead>
157                                                 <c:forEach items="${results}" var="res" varStatus="status">
158                                                         <c:if test="${res.group!='alignment' and res.group!='disorder'}">
159                                                                 <c:if test="${status.count%2==0}">
160                                                                         <tr class="even">
161                                                                 </c:if><c:if test="${status.count%2!=0}">
162                                                                 <tr class="odd">
163                                                         </c:if>
164                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
165                                                                 <td>${res.version}</td>
166                                                                 <c:if test="${res.status}">
167                                                                         <td><div class="source">
168                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
169                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
170                                                                                 <div class="body collapsed" style="max-width: 400px;">
171                                                                                         <pre>${res.details}</pre>
172                                                                                 </div></div></td>
173                                                                 </c:if>
174                                                                 <c:if test="${!res.status}">
175                                                                         <td><div class="source">
176                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
177                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
178                                                                                 <div class="body collapsed" style="max-width: 400px;">
179                                                                                         <pre>${res.details}</pre>
180                                                                                 </div></div></td>
181                                                                 </c:if>
182                                                                 <td><div class="source">
183                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
184                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
185                                                                         <div class="body collapsed" style="max-width: 500px;">
186                                                                                 <pre>${res.reference}</pre>
187                                                                         </div></div></td>
188                                                                 </tr>
189                                                         </c:if>
190                                                 </c:forEach>
191                                         </table>
192
193                                         <p>If you would like to integrate JABAWS with automated health check system you may want to use
194                                                 the HTTP code response service checker. It responds with HTTP status code depending on the status
195                                                 of the web service.
196                                                 For more information please refer to <a href="${pageContext.request.contextPath}/man_serverwar.jsp#usingWsTester">
197                                                         Testing JABAWS server</a> help page.</p>
198                                 </div><!-- margin div -->
199                         </div>
200                 </div>
201         </div>
202 </div>
203
204 <jsp:include page="../template_footer.jsp" />