ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/http/fileupload/UploadContext.java

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

      
    
Rootfs path

      
    
Size
1500 (1.5 KB)
MD5
4c96e98610e837dd6525b3e7cff0464b
SHA1
19180fa9c4b406d679ac1a84db1d6b25502c830d
SHA256
3703ff6e58a5855378459accdb8d4d55995ceff8a15a85fde1a6ee34449df089
SHA512

      
    
SHA1_git
c84be013da9869a498f841d0807872bb7762b9e4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
UploadContext.java | 1.5 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.util.http.fileupload; /** * Enhanced access to the request information needed for file uploads, * which fixes the Content Length data access in {@link RequestContext}. * * The reason of introducing this new interface is just for backward compatibility * and it might vanish for a refactored 2.x version moving the new method into * RequestContext again. * * @since FileUpload 1.3 */ public interface UploadContext extends RequestContext { /** * Retrieve the content length of the request. * * @return The content length of the request. * @since FileUpload 1.3 */ long contentLength(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
58.62
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