ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/manager/xform.xsl

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/manager/xform.xsl
Status
scanned
Type
file
Name
xform.xsl
Extension
.xsl
Programming language

      
    
Mime type
text/xml
File type
XML 1.0 document, ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
4849 (4.7 KB)
MD5
e6136d6705e6851bcb200393cd7f3ef8
SHA1
f4b888b09c29e5b957d2b7f09d906630f0ec8f2a
SHA256
7727990448326bfe8904e36c1996e15711dbb65235e95d31fb8403ea80709407
SHA512

      
    
SHA1_git
9fe8dcb35d3915b00bdec4b0298bb69a567b5228
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
xform.xsl | 4.7 KB |

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Output method --> <xsl:output encoding="iso-8859-1" indent="no"/> <xsl:template match="status"> <html lang="en"> <head> <title>Tomcat Status</title> <style> body, table, tr, td, a, div, span { vertical-align: top; } </style> </head> <body> <div style='font-size:20px;'>Tomcat Status</div> <xsl:apply-templates select="jvm"/> <xsl:apply-templates select="connector"/> </body> </html> </xsl:template> <xsl:template match="jvm"> <xsl:apply-templates select="memory"/> <b>Memory Pools</b><br /> <xsl:apply-templates select="memorypool"/> <hr /> </xsl:template> <xsl:template match="memory"> <table> <tr> <td><b>JVM:</b></td> <td><b>free:</b> <xsl:value-of select="@free"/></td> <td><b>total:</b> <xsl:value-of select="@total"/></td> <td><b>max:</b> <xsl:value-of select="@max"/></td> </tr> </table> <hr /> </xsl:template> <xsl:template match="memorypool"> <table> <tr> <td><b>Name:</b> <xsl:value-of select="@name"/></td> <td><b>Type:</b> <xsl:value-of select="@type"/></td> <td><b>Initial:</b> <xsl:value-of select="@usageInit"/></td> <td><b>Committed:</b> <xsl:value-of select="@usageCommitted"/></td> <td><b>Maximum:</b> <xsl:value-of select="@usageMax"/></td> <td><b>Used:</b> <xsl:value-of select="@usageUsed"/></td> </tr> </table> </xsl:template> <xsl:template match="connector"> <b>Connector -- </b> <xsl:value-of select="@name"/><br /> <xsl:apply-templates select="threadInfo"/> <xsl:apply-templates select="requestInfo"/> <xsl:apply-templates select="workers"/> </xsl:template> <xsl:template match="threadInfo"> <table> <tr> <td><b>threadInfo</b></td> <td><b>maxThreads:</b> <xsl:value-of select="@maxThreads"/></td> <td><b>currentThreadCount:</b> <xsl:value-of select="@currentThreadCount"/></td> <td><b>currentThreadsBusy:</b> <xsl:value-of select="@currentThreadsBusy"/></td> </tr> </table> <hr /> </xsl:template> <xsl:template match="requestInfo"> <table> <tr> <td><b>requestInfo </b></td> <td><b>maxTime:</b> <xsl:value-of select="@maxTime"/></td> <td><b>processingTime:</b> <xsl:value-of select="@processingTime"/></td> <td><b>requestCount:</b> <xsl:value-of select="@requestCount"/></td> <td><b>errorCount:</b> <xsl:value-of select="@errorCount"/></td> <td><b>bytesReceived:</b> <xsl:value-of select="@bytesReceived"/></td> <td><b>bytesSent:</b> <xsl:value-of select="@bytesSent"/></td> </tr> </table> <hr /> </xsl:template> <xsl:template match="workers"> <table> <tr> <th>Stage</th> <th>Time</th> <th>B Sent</th> <th>B Recv</th> <th>Client</th> <th>VHost</th> <th>Request</th> </tr> <xsl:apply-templates select="worker"/> </table> <hr /> </xsl:template> <xsl:template match="worker"> <tr> <td><xsl:value-of select="@stage"/></td> <td><xsl:value-of select="@requestProcessingTime"/></td> <td><xsl:value-of select="@requestBytesSent"/></td> <td><xsl:value-of select="@requestBytesReceived"/></td> <td><xsl:value-of select="@remoteAddr"/></td> <td><xsl:value-of select="@virtualHost"/></td> <td><xsl:value-of select="@method"/> <xsl:value-of select="@currentUri"/>?<xsl:value-of select="@currentQueryString"/> <xsl:value-of select="@protocol"/></td> </tr> </xsl:template> </xsl:stylesheet>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
23.71
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 10 10