ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/JarScannerCallback.java

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

      
    
Rootfs path

      
    
Size
2886 (2.8 KB)
MD5
7873cd4598c2234c4274b602891e4c64
SHA1
a207b37fb865bd54d317cd2b76b0c06fd07879ab
SHA256
d438383b8a75953259665d9dd03298f5bd040f7f7b0a28ae144ea66cfa31286a
SHA512

      
    
SHA1_git
85336b2ac9e97aac920930a261f21358f94e3095
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
JarScannerCallback.java | 2.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.tomcat; import java.io.File; import java.io.IOException; /** * This interface is implemented by clients of the {@link JarScanner} to enable them to receive notification of a * discovered JAR. */ public interface JarScannerCallback { /** * A JAR was found and may be accessed for further processing via the provided URL connection. The caller is * responsible for closing the JAR. * * @param jar The JAR to process * @param webappPath The path, if any, to the JAR within the web application * @param isWebapp Indicates if the JAR was found within a web application. If <code>false</code> the JAR should * be treated as being provided by the container * * @throws IOException if an I/O error occurs while scanning the JAR */ void scan(Jar jar, String webappPath, boolean isWebapp) throws IOException; /** * A directory was found that is to be treated as an unpacked JAR. The directory may be accessed for further * processing via the provided file. * * @param file The directory containing the unpacked JAR. * @param webappPath The path, if any, to the file within the web application * @param isWebapp Indicates if the JAR was found within a web application. If <code>false</code> the JAR should * be treated as being provided by the container * * @throws IOException if an I/O error occurs while scanning the JAR */ void scan(File file, String webappPath, boolean isWebapp) throws IOException; /** * A directory structure was found within the web application at /WEB-INF/classes that should be handled as an * unpacked JAR. Note that all resource access must be via the ServletContext to ensure that any additional * resources are visible. * * @throws IOException if an I/O error occurs while scanning WEB-INF/classes */ void scanWebInfClasses() throws IOException; }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
30.43
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