ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/webresources/JarResourceSet.java

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

      
    
Rootfs path

      
    
Size
2718 (2.7 KB)
MD5
f7a38e2d188f9255fc34f866c1c417fd
SHA1
b8d8c0367b37f3d4520a58924006d681d0737cdc
SHA256
54d2a914f80fdadd7bbc85fa60a7a1bdfec4b876d2d6b60a50d9c5ff8eb38d6d
SHA512

      
    
SHA1_git
c7865e9510f8f5dc2c3c8111ff9389094b8384ed
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
JarResourceSet.java | 2.7 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.catalina.webresources; import java.util.jar.JarEntry; import java.util.jar.Manifest; import org.apache.catalina.WebResource; import org.apache.catalina.WebResourceRoot; /** * Represents a {@link org.apache.catalina.WebResourceSet} based on a JAR file. */ public class JarResourceSet extends AbstractSingleArchiveResourceSet { /** * A no argument constructor is required for this to work with the digester. */ public JarResourceSet() { } /** * Creates a new {@link org.apache.catalina.WebResourceSet} based on a JAR file. * * @param root The {@link WebResourceRoot} this new {@link org.apache.catalina.WebResourceSet} will be added * to. * @param webAppMount The path within the web application at which this {@link org.apache.catalina.WebResourceSet} * will be mounted. * @param base The absolute path to the JAR file on the file system from which the resources will be served. * @param internalPath The path within this new {@link org.apache.catalina.WebResourceSet} where resources will be * served from. E.g. for a resource JAR, this would be "META-INF/resources" * * @throws IllegalArgumentException if the webAppMount or internalPath is not valid (valid paths must start with * '/') */ public JarResourceSet(WebResourceRoot root, String webAppMount, String base, String internalPath) throws IllegalArgumentException { super(root, webAppMount, base, internalPath); } @Override protected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest) { return new JarResource(this, webAppPath, getBaseUrlString(), jarEntry); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
37.66
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