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

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

      
    
Rootfs path

      
    
Size
2487 (2.4 KB)
MD5
9ae400ff31359f9a8bf79d59b15fd43c
SHA1
418d1cee3cb477e3e29b26ca8ef34cded28e5130
SHA256
e40ace2cd48329baf98716b70001f6f3fdbd974d88faa23d4cb5129a0111f86c
SHA512

      
    
SHA1_git
d8e362ffebe581ce37a72deae2c827ba7e844473
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
FileUpload.java | 2.4 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; /** * <p>High level API for processing file uploads.</p> * * <p>This class handles multiple files per single HTML widget, sent using * {@code multipart/mixed} encoding type, as specified by * <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link * #parseRequest(RequestContext)} to acquire a list * of {@link org.apache.tomcat.util.http.fileupload.FileItem FileItems} associated * with a given HTML widget.</p> * * <p>How the data for individual parts is stored is determined by the factory * used to create them; a given part may be in memory, on disk, or somewhere * else.</p> */ public class FileUpload extends FileUploadBase { /** * The factory to use to create new form items. */ private FileItemFactory fileItemFactory; /** * Constructs an uninitialized instance of this class. * * A factory must be * configured, using {@code setFileItemFactory()}, before attempting * to parse requests. */ public FileUpload() { } /** * Returns the factory class used when creating file items. * * @return The factory class for new file items. */ @Override public FileItemFactory getFileItemFactory() { return fileItemFactory; } /** * Sets the factory class to use when creating file items. * * @param fileItemFactory The factory class for new file items. */ @Override public void setFileItemFactory(final FileItemFactory fileItemFactory) { this.fileItemFactory = fileItemFactory; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
40.48
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
http://www.ietf.org/rfc/rfc1867.txt 24 24