ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/jasper/compiler/JarScannerFactory.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/jasper/compiler/JarScannerFactory.java
Status
scanned
Type
file
Name
JarScannerFactory.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
1867 (1.8 KB)
MD5
200b2b50d0bb2144f4526b72e8a09abd
SHA1
900bc3f416cf78a34fe95e5a03bc9f48ee618db9
SHA256
8492d96aa19631706cb3c9ba5f037cdd41f2e073d1a86427e5d7c53e00028522
SHA512

      
    
SHA1_git
4d488fdd6d2870d0285f89be95e1a2daf037e90e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
JarScannerFactory.java | 1.8 KB |

/* * 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. */ package org.apache.jasper.compiler; import jakarta.servlet.ServletContext; import org.apache.tomcat.JarScanner; import org.apache.tomcat.util.scan.StandardJarScanner; /** * Provide a mechanism for Jasper to obtain a reference to the JarScanner implementation. */ public class JarScannerFactory { private JarScannerFactory() { // Don't want any instances so hide the default constructor. } /** * Obtain the {@link JarScanner} associated with the specified {@link ServletContext}. It is obtained via a context * parameter. * * @param ctxt The Servlet context * * @return a scanner instance */ public static JarScanner getJarScanner(ServletContext ctxt) { JarScanner jarScanner = (JarScanner) ctxt.getAttribute(JarScanner.class.getName()); if (jarScanner == null) { ctxt.log(Localizer.getMessage("jsp.warning.noJarScanner")); jarScanner = new StandardJarScanner(); } return jarScanner; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
54.84
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 9 9