Migrated from javax to jakarta packages
parent
c4f32a1329
commit
0c5fc58b5c
858
pom.xml
858
pom.xml
|
@ -16,442 +16,454 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-parent</artifactId>
|
||||
<version>56</version>
|
||||
</parent>
|
||||
<parent>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-parent</artifactId>
|
||||
<version>56</version>
|
||||
</parent>
|
||||
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.5.1-SNAPSHOT</version>
|
||||
<groupId>org.nanoboot.commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.5.1-SNAPSHOT</version>
|
||||
|
||||
<name>Apache Commons FileUpload</name>
|
||||
<description>
|
||||
The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart
|
||||
file upload functionality to servlets and web applications.
|
||||
</description>
|
||||
<url>https://commons.apache.org/proper/commons-fileupload/</url>
|
||||
<inceptionYear>2002</inceptionYear>
|
||||
<name>Apache Commons FileUpload</name>
|
||||
<description>
|
||||
The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart
|
||||
file upload functionality to servlets and web applications.
|
||||
</description>
|
||||
<url>https://commons.apache.org/proper/commons-fileupload/</url>
|
||||
<inceptionYear>2002</inceptionYear>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Martin Cooper</name>
|
||||
<id>martinc</id>
|
||||
<email>martinc@apache.org</email>
|
||||
<organization>Yahoo!</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@apache.org</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>John McNally</name>
|
||||
<id>jmcnally</id>
|
||||
<email>jmcnally@collab.net</email>
|
||||
<organization>CollabNet</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Daniel Rall</name>
|
||||
<id>dlr</id>
|
||||
<email>dlr@finemaltcoding.com</email>
|
||||
<organization>CollabNet</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Jason van Zyl</name>
|
||||
<id>jvanzyl</id>
|
||||
<email>jason@zenplex.com</email>
|
||||
<organization>Zenplex</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Robert Burrell Donkin</name>
|
||||
<id>rdonkin</id>
|
||||
<email>rdonkin@apache.org</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Sean C. Sullivan</name>
|
||||
<id>sullis</id>
|
||||
<email>sean |at| seansullivan |dot| com</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Jochen Wiedmann</name>
|
||||
<id>jochen</id>
|
||||
<email>jochen.wiedmann@gmail.com</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Simone Tripodi</name>
|
||||
<id>simonetripodi</id>
|
||||
<email>simonetripodi@apache.org</email>
|
||||
<organization>Adobe</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Gary Gregory</name>
|
||||
<id>ggregory</id>
|
||||
<email>ggregory@apache.org</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Rob Tompkins</name>
|
||||
<id>chtompki</id>
|
||||
<email>chtompki@apache.org</email>
|
||||
</developer>
|
||||
</developers>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Martin Cooper</name>
|
||||
<id>martinc</id>
|
||||
<email>martinc@apache.org</email>
|
||||
<organization>Yahoo!</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@apache.org</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>John McNally</name>
|
||||
<id>jmcnally</id>
|
||||
<email>jmcnally@collab.net</email>
|
||||
<organization>CollabNet</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Daniel Rall</name>
|
||||
<id>dlr</id>
|
||||
<email>dlr@finemaltcoding.com</email>
|
||||
<organization>CollabNet</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Jason van Zyl</name>
|
||||
<id>jvanzyl</id>
|
||||
<email>jason@zenplex.com</email>
|
||||
<organization>Zenplex</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Robert Burrell Donkin</name>
|
||||
<id>rdonkin</id>
|
||||
<email>rdonkin@apache.org</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Sean C. Sullivan</name>
|
||||
<id>sullis</id>
|
||||
<email>sean |at| seansullivan |dot| com</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Jochen Wiedmann</name>
|
||||
<id>jochen</id>
|
||||
<email>jochen.wiedmann@gmail.com</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Simone Tripodi</name>
|
||||
<id>simonetripodi</id>
|
||||
<email>simonetripodi@apache.org</email>
|
||||
<organization>Adobe</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Gary Gregory</name>
|
||||
<id>ggregory</id>
|
||||
<email>ggregory@apache.org</email>
|
||||
<organization />
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Rob Tompkins</name>
|
||||
<id>chtompki</id>
|
||||
<email>chtompki@apache.org</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Aaron Freeman</name>
|
||||
<email>aaron@sendthisfile.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Daniel Fabian</name>
|
||||
<email>dfabian@google.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Jörg Heinicke</name>
|
||||
<email>joerg.heinicke@gmx.de</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Stepan Koltsov</name>
|
||||
<email>yozh@mx1.ru</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Michael Macaluso</name>
|
||||
<email>michael.public@wavecorp.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Amichai Rothman</name>
|
||||
<email>amichai2@amichais.net</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Alexander Sova</name>
|
||||
<email>bird@noir.crocodile.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Paul Spurr</name>
|
||||
<email>pspurr@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Thomas Vandahl</name>
|
||||
<email>tv@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Henry Yandell</name>
|
||||
<email>bayard@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Jan Novotný</name>
|
||||
<email>novotnaci@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>frank</name>
|
||||
<email>mailsurfie@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>maxxedev</name>
|
||||
<email>maxxedev@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Rafal Krzewski</name>
|
||||
<email>Rafal.Krzewski@e-point.pl</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Sean Legassick</name>
|
||||
<email>sean@informage.net</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Oleg Kalnichevski</name>
|
||||
<email>oleg@ural.ru</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>David Sean Taylor</name>
|
||||
<email>taylor@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>fangwentong</name>
|
||||
<email>fangwentong2012@gmail.com</email>
|
||||
</contributor>
|
||||
</contributors>
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Aaron Freeman</name>
|
||||
<email>aaron@sendthisfile.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Daniel Fabian</name>
|
||||
<email>dfabian@google.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Jörg Heinicke</name>
|
||||
<email>joerg.heinicke@gmx.de</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Stepan Koltsov</name>
|
||||
<email>yozh@mx1.ru</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Michael Macaluso</name>
|
||||
<email>michael.public@wavecorp.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Amichai Rothman</name>
|
||||
<email>amichai2@amichais.net</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Alexander Sova</name>
|
||||
<email>bird@noir.crocodile.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Paul Spurr</name>
|
||||
<email>pspurr@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Thomas Vandahl</name>
|
||||
<email>tv@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Henry Yandell</name>
|
||||
<email>bayard@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Jan Novotný</name>
|
||||
<email>novotnaci@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>frank</name>
|
||||
<email>mailsurfie@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>maxxedev</name>
|
||||
<email>maxxedev@gmail.com</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Rafal Krzewski</name>
|
||||
<email>Rafal.Krzewski@e-point.pl</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Sean Legassick</name>
|
||||
<email>sean@informage.net</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Oleg Kalnichevski</name>
|
||||
<email>oleg@ural.ru</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>David Sean Taylor</name>
|
||||
<email>taylor@apache.org</email>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>fangwentong</name>
|
||||
<email>fangwentong2012@gmail.com</email>
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:http://gitbox.apache.org/repos/asf/commons-fileupload.git</connection>
|
||||
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-fileupload.git</developerConnection>
|
||||
<url>https://gitbox.apache.org/repos/asf?p=commons-fileupload.git</url>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://issues.apache.org/jira/browse/FILEUPLOAD</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<connection>scm:git:http://gitbox.apache.org/repos/asf/commons-fileupload.git</connection>
|
||||
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-fileupload.git</developerConnection>
|
||||
<url>https://gitbox.apache.org/repos/asf?p=commons-fileupload.git</url>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://issues.apache.org/jira/browse/FILEUPLOAD</url>
|
||||
</issueManagement>
|
||||
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>apache.website</id>
|
||||
<name>Apache Commons Site</name>
|
||||
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
<!-- <distributionManagement>
|
||||
<site>
|
||||
<id>apache.website</id>
|
||||
<name>Apache Commons Site</name>
|
||||
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload/</url>
|
||||
</site>
|
||||
</distributionManagement>-->
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>nanoboot-releases-repository</id>
|
||||
<url>https://maven.nanoboot.org/releases</url>
|
||||
</repository>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.6</maven.compiler.source>
|
||||
<maven.compiler.target>1.6</maven.compiler.target>
|
||||
<commons.componentid>fileupload</commons.componentid>
|
||||
<commons.module.name>org.apache.commons.fileupload</commons.module.name>
|
||||
<commons.release.version>1.5.1</commons.release.version>
|
||||
<commons.release.desc>(requires Java ${maven.compiler.target} or later)</commons.release.desc>
|
||||
<commons.jira.id>FILEUPLOAD</commons.jira.id>
|
||||
<commons.jira.pid>12310476</commons.jira.pid>
|
||||
<commons.site.path>fileupload</commons.site.path>
|
||||
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload</commons.scmPubUrl>
|
||||
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
|
||||
<commons.osgi.export>!org.apache.commons.fileupload.util.mime,org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
|
||||
<commons.osgi.import>!javax.portlet,*</commons.osgi.import>
|
||||
<commons.osgi.dynamicImport>javax.portlet</commons.osgi.dynamicImport>
|
||||
<japicmp.skip>false</japicmp.skip>
|
||||
<snapshotRepository>
|
||||
<id>nanoboot-snapshots-repository</id>
|
||||
<url>https://maven.nanoboot.org/snapshots</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
<commons.componentid>fileupload</commons.componentid>
|
||||
<commons.module.name>org.apache.commons.fileupload</commons.module.name>
|
||||
<commons.release.version>1.5.1</commons.release.version>
|
||||
<commons.release.desc>(requires Java ${maven.compiler.target} or later)</commons.release.desc>
|
||||
<commons.jira.id>FILEUPLOAD</commons.jira.id>
|
||||
<commons.jira.pid>12310476</commons.jira.pid>
|
||||
<commons.site.path>fileupload</commons.site.path>
|
||||
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload</commons.scmPubUrl>
|
||||
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
|
||||
<commons.osgi.export>!org.apache.commons.fileupload.util.mime,org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
|
||||
<commons.osgi.import>!javax.portlet,*</commons.osgi.import>
|
||||
<commons.osgi.dynamicImport>javax.portlet</commons.osgi.dynamicImport>
|
||||
<japicmp.skip>false</japicmp.skip>
|
||||
|
||||
<!-- Commons Release Plugin -->
|
||||
<commons.bc.version>1.5</commons.bc.version>
|
||||
<commons.rc.version>RC1</commons.rc.version>
|
||||
<commons.release.isDistModule>true</commons.release.isDistModule>
|
||||
<commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl>
|
||||
<commons.releaseManagerName>Rob Tompkins</commons.releaseManagerName>
|
||||
<commons.releaseManagerKey>B6E73D84EA4FCC47166087253FAAD2CD5ECBB314</commons.releaseManagerKey>
|
||||
</properties>
|
||||
<!-- Commons Release Plugin -->
|
||||
<commons.bc.version>1.5</commons.bc.version>
|
||||
<commons.rc.version>RC1</commons.rc.version>
|
||||
<commons.release.isDistModule>true</commons.release.isDistModule>
|
||||
<commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl>
|
||||
<commons.releaseManagerName>Rob Tompkins</commons.releaseManagerName>
|
||||
<commons.releaseManagerKey>B6E73D84EA4FCC47166087253FAAD2CD5ECBB314</commons.releaseManagerKey>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>portlet-api</groupId>
|
||||
<artifactId>portlet-api</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.11.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.platform</groupId>
|
||||
<artifactId>jakarta.jakartaee-web-api</artifactId>
|
||||
<version>9.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>portlet-api</groupId>
|
||||
<artifactId>portlet-api</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.11.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>validate-main</id>
|
||||
<phase>validate</phase>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
<consoleOutput>true</consoleOutput>
|
||||
<failsOnError>true</failsOnError>
|
||||
<linkXRef>false</linkXRef>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>checkstyle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>${basedir}/src/main/assembly/bin.xml</descriptor>
|
||||
<descriptor>${basedir}/src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.rat</groupId>
|
||||
<artifactId>apache-rat-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>site-content/**</exclude>
|
||||
<exclude>src/site/resources/download_lang.cgi</exclude>
|
||||
<exclude>src/checkstyle/license-header.txt</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.siom79.japicmp</groupId>
|
||||
<artifactId>japicmp-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<configuration>
|
||||
<lifecycleMappingMetadata>
|
||||
<pluginExecutions>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<versionRange>[1.8,)</versionRange>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<versionRange>[1.10,)</versionRange>
|
||||
<goals>
|
||||
<goal>parse-version</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-changes-plugin</artifactId>
|
||||
<version>${commons.changes.version}</version>
|
||||
<configuration>
|
||||
<issueLinkTemplate>%URL%/../%ISSUE%</issueLinkTemplate>
|
||||
</configuration>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>changes-report</report>
|
||||
<!-- NPE, retry from time to time <report>jira-report</report> -->
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.siom79.japicmp</groupId>
|
||||
<artifactId>japicmp-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-pmd-plugin</artifactId>
|
||||
<configuration>
|
||||
<targetJdk>${maven.compiler.target}</targetJdk>
|
||||
<rulesets>
|
||||
<ruleset>${basedir}/src/checkstyle/fileupload_basic.xml</ruleset>
|
||||
</rulesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>setup-checkout</id>
|
||||
<activation>
|
||||
<file>
|
||||
<missing>site-content</missing>
|
||||
</file>
|
||||
</activation>
|
||||
<build>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>prepare-checkout</id>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>validate-main</id>
|
||||
<phase>validate</phase>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
<consoleOutput>true</consoleOutput>
|
||||
<failsOnError>true</failsOnError>
|
||||
<linkXRef>false</linkXRef>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>checkstyle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<target>
|
||||
<exec executable="svn">
|
||||
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
|
||||
</exec>
|
||||
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
|
||||
</exec>
|
||||
|
||||
<pathconvert pathsep=" " property="dirs">
|
||||
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
|
||||
</pathconvert>
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth infinity ${dirs}" />
|
||||
</exec>
|
||||
</target>
|
||||
<descriptors>
|
||||
<descriptor>${basedir}/src/main/assembly/bin.xml</descriptor>
|
||||
<descriptor>${basedir}/src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>java9</id>
|
||||
<activation>
|
||||
<jdk>9</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
|
||||
<coveralls.skip>true</coveralls.skip>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.rat</groupId>
|
||||
<artifactId>apache-rat-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>site-content/**</exclude>
|
||||
<exclude>src/site/resources/download_lang.cgi</exclude>
|
||||
<exclude>src/checkstyle/license-header.txt</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.siom79.japicmp</groupId>
|
||||
<artifactId>japicmp-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<configuration>
|
||||
<lifecycleMappingMetadata>
|
||||
<pluginExecutions>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<versionRange>[1.8,)</versionRange>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<versionRange>[1.10,)</versionRange>
|
||||
<goals>
|
||||
<goal>parse-version</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-changes-plugin</artifactId>
|
||||
<version>${commons.changes.version}</version>
|
||||
<configuration>
|
||||
<issueLinkTemplate>%URL%/../%ISSUE%</issueLinkTemplate>
|
||||
</configuration>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>changes-report</report>
|
||||
<!-- NPE, retry from time to time <report>jira-report</report> -->
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<configuration>
|
||||
<configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
|
||||
<suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
||||
<enableRulesSummary>false</enableRulesSummary>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.siom79.japicmp</groupId>
|
||||
<artifactId>japicmp-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-pmd-plugin</artifactId>
|
||||
<configuration>
|
||||
<targetJdk>${maven.compiler.target}</targetJdk>
|
||||
<rulesets>
|
||||
<ruleset>${basedir}/src/checkstyle/fileupload_basic.xml</ruleset>
|
||||
</rulesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>setup-checkout</id>
|
||||
<activation>
|
||||
<file>
|
||||
<missing>site-content</missing>
|
||||
</file>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>prepare-checkout</id>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<exec executable="svn">
|
||||
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
|
||||
</exec>
|
||||
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
|
||||
</exec>
|
||||
|
||||
<pathconvert pathsep=" " property="dirs">
|
||||
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
|
||||
</pathconvert>
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth infinity ${dirs}" />
|
||||
</exec>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>java9</id>
|
||||
<activation>
|
||||
<jdk>9</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
|
||||
<coveralls.skip>true</coveralls.skip>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.apache.commons.fileupload.disk.DiskFileItem;
|
|||
* <p> After retrieving an instance of this class from a {@link
|
||||
* org.apache.commons.fileupload.DiskFileUpload DiskFileUpload} instance (see
|
||||
* {@link org.apache.commons.fileupload.DiskFileUpload
|
||||
* #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
|
||||
* #parseRequest(jakarta.servlet.http.HttpServletRequest)}), you may
|
||||
* either request all contents of file at once using {@link #get()} or
|
||||
* request an {@link java.io.InputStream InputStream} with
|
||||
* {@link #getInputStream()} and process the file without attempting to load
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.apache.commons.fileupload;
|
|||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* <p>High level API for processing file uploads.</p>
|
||||
|
|
|
@ -29,7 +29,7 @@ import java.io.UnsupportedEncodingException;
|
|||
* <p> After retrieving an instance of this class from a {@link
|
||||
* org.apache.commons.fileupload.FileUpload FileUpload} instance (see
|
||||
* {@link org.apache.commons.fileupload.servlet.ServletFileUpload
|
||||
* #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
|
||||
* #parseRequest(jakarta.servlet.http.HttpServletRequest)}), you may
|
||||
* either request all contents of the file at once using {@link #get()} or
|
||||
* request an {@link java.io.InputStream InputStream} with
|
||||
* {@link #getInputStream()} and process the file without attempting to load
|
||||
|
|
|
@ -29,7 +29,7 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.fileupload.MultipartStream.ItemInputStream;
|
||||
import org.apache.commons.fileupload.servlet.ServletFileUpload;
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.commons.io.output.DeferredFileOutputStream;
|
|||
* <p> After retrieving an instance of this class from a {@link
|
||||
* DiskFileItemFactory} instance (see
|
||||
* {@link org.apache.commons.fileupload.servlet.ServletFileUpload
|
||||
* #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
|
||||
* #parseRequest(jakarta.servlet.http.HttpServletRequest)}), you may
|
||||
* either request all contents of file at once using {@link #get()} or
|
||||
* request an {@link java.io.InputStream InputStream} with
|
||||
* {@link #getInputStream()} and process the file without attempting to load
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.apache.commons.io.FileCleaningTracker;
|
|||
* implementation in an environment with local, untrusted users,
|
||||
* {@link #setRepository(File)} MUST be used to configure a repository location
|
||||
* that is not publicly writable. In a Servlet container the location identified
|
||||
* by the ServletContext attribute <code>javax.servlet.context.tempdir</code>
|
||||
* by the ServletContext attribute <code>jakarta.servlet.context.tempdir</code>
|
||||
* may be used.
|
||||
* </p>
|
||||
*
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.apache.commons.fileupload.FileUploadException;
|
|||
* <code>multipart/mixed</code> encoding type, as specified by
|
||||
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use
|
||||
* {@link org.apache.commons.fileupload.servlet.ServletFileUpload
|
||||
* #parseRequest(javax.servlet.http.HttpServletRequest)} to acquire a list
|
||||
* #parseRequest(jakarta.servlet.http.HttpServletRequest)} to acquire a list
|
||||
* of {@link org.apache.commons.fileupload.FileItem FileItems} associated
|
||||
* with a given HTML widget.</p>
|
||||
*
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
*/
|
||||
package org.apache.commons.fileupload.servlet;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletContextListener;
|
||||
import javax.servlet.ServletContextEvent;
|
||||
import jakarta.servlet.ServletContext;
|
||||
import jakarta.servlet.ServletContextListener;
|
||||
import jakarta.servlet.ServletContextEvent;
|
||||
|
||||
import org.apache.commons.io.FileCleaningTracker;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import java.io.IOException;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.fileupload.FileItem;
|
||||
import org.apache.commons.fileupload.FileItemFactory;
|
||||
|
|
|
@ -21,7 +21,7 @@ import static java.lang.String.format;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.fileupload.FileUploadBase;
|
||||
import org.apache.commons.fileupload.UploadContext;
|
||||
|
|
|
@ -145,7 +145,7 @@ DiskFileItemFactory factory = new DiskFileItemFactory();
|
|||
|
||||
// Configure a repository (to ensure a secure temp location is used)
|
||||
ServletContext servletContext = this.getServletConfig().getServletContext();
|
||||
File repository = (File) servletContext.getAttribute("javax.servlet.context.tempdir");
|
||||
File repository = (File) servletContext.getAttribute("jakarta.servlet.context.tempdir");
|
||||
factory.setRepository(repository);
|
||||
|
||||
// Create a new file upload handler
|
||||
|
|
|
@ -21,7 +21,7 @@ import static org.junit.Assert.*;
|
|||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.fileupload.disk.DiskFileItem;
|
||||
import org.junit.Before;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
package org.apache.commons.fileupload;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
final class HttpServletRequestFactory {
|
||||
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
*/
|
||||
package org.apache.commons.fileupload;
|
||||
|
||||
import jakarta.servlet.AsyncContext;
|
||||
import jakarta.servlet.DispatcherType;
|
||||
import jakarta.servlet.ReadListener;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
|
@ -26,11 +29,19 @@ import java.util.Enumeration;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.RequestDispatcher;
|
||||
import javax.servlet.ServletInputStream;
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import jakarta.servlet.RequestDispatcher;
|
||||
import jakarta.servlet.ServletContext;
|
||||
import jakarta.servlet.ServletException;
|
||||
import jakarta.servlet.ServletInputStream;
|
||||
import jakarta.servlet.ServletRequest;
|
||||
import jakarta.servlet.ServletResponse;
|
||||
import jakarta.servlet.http.Cookie;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
import jakarta.servlet.http.HttpUpgradeHandler;
|
||||
import jakarta.servlet.http.Part;
|
||||
import java.util.Collection;
|
||||
|
||||
public class MockHttpServletRequest implements HttpServletRequest {
|
||||
|
||||
|
@ -70,7 +81,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getAuthType()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getAuthType()
|
||||
*/
|
||||
@Override
|
||||
public String getAuthType() {
|
||||
|
@ -78,7 +89,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getCookies()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getCookies()
|
||||
*/
|
||||
@Override
|
||||
public Cookie[] getCookies() {
|
||||
|
@ -86,7 +97,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getDateHeader(String)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getDateHeader(String)
|
||||
*/
|
||||
@Override
|
||||
public long getDateHeader(String arg0) {
|
||||
|
@ -94,7 +105,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getHeader(String)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getHeader(String)
|
||||
*/
|
||||
@Override
|
||||
public String getHeader(String headerName) {
|
||||
|
@ -102,7 +113,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getHeaders(String)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getHeaders(String)
|
||||
*/
|
||||
@Override
|
||||
public Enumeration<String> getHeaders(String arg0) {
|
||||
|
@ -111,7 +122,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getHeaderNames()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getHeaderNames()
|
||||
*/
|
||||
@Override
|
||||
public Enumeration<String> getHeaderNames() {
|
||||
|
@ -120,7 +131,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getIntHeader(String)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getIntHeader(String)
|
||||
*/
|
||||
@Override
|
||||
public int getIntHeader(String arg0) {
|
||||
|
@ -128,7 +139,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getMethod()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getMethod()
|
||||
*/
|
||||
@Override
|
||||
public String getMethod() {
|
||||
|
@ -136,7 +147,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getPathInfo()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getPathInfo()
|
||||
*/
|
||||
@Override
|
||||
public String getPathInfo() {
|
||||
|
@ -144,7 +155,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getPathTranslated()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getPathTranslated()
|
||||
*/
|
||||
@Override
|
||||
public String getPathTranslated() {
|
||||
|
@ -152,7 +163,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getContextPath()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getContextPath()
|
||||
*/
|
||||
@Override
|
||||
public String getContextPath() {
|
||||
|
@ -160,7 +171,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getQueryString()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getQueryString()
|
||||
*/
|
||||
@Override
|
||||
public String getQueryString() {
|
||||
|
@ -168,7 +179,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getRemoteUser()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getRemoteUser()
|
||||
*/
|
||||
@Override
|
||||
public String getRemoteUser() {
|
||||
|
@ -176,7 +187,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#isUserInRole(String)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#isUserInRole(String)
|
||||
*/
|
||||
@Override
|
||||
public boolean isUserInRole(String arg0) {
|
||||
|
@ -184,7 +195,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getUserPrincipal()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getUserPrincipal()
|
||||
*/
|
||||
@Override
|
||||
public Principal getUserPrincipal() {
|
||||
|
@ -192,7 +203,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getRequestedSessionId()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getRequestedSessionId()
|
||||
*/
|
||||
@Override
|
||||
public String getRequestedSessionId() {
|
||||
|
@ -200,7 +211,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getRequestURI()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getRequestURI()
|
||||
*/
|
||||
@Override
|
||||
public String getRequestURI() {
|
||||
|
@ -208,7 +219,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getRequestURL()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getRequestURL()
|
||||
*/
|
||||
@Override
|
||||
public StringBuffer getRequestURL() {
|
||||
|
@ -216,7 +227,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getServletPath()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getServletPath()
|
||||
*/
|
||||
@Override
|
||||
public String getServletPath() {
|
||||
|
@ -224,7 +235,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getSession(boolean)
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getSession(boolean)
|
||||
*/
|
||||
@Override
|
||||
public HttpSession getSession(boolean arg0) {
|
||||
|
@ -232,7 +243,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#getSession()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#getSession()
|
||||
*/
|
||||
@Override
|
||||
public HttpSession getSession() {
|
||||
|
@ -240,7 +251,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
|
||||
*/
|
||||
@Override
|
||||
public boolean isRequestedSessionIdValid() {
|
||||
|
@ -248,7 +259,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
|
||||
*/
|
||||
@Override
|
||||
public boolean isRequestedSessionIdFromCookie() {
|
||||
|
@ -256,7 +267,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
|
||||
*/
|
||||
@Override
|
||||
public boolean isRequestedSessionIdFromURL() {
|
||||
|
@ -264,7 +275,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
|
||||
* @see jakarta.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
|
||||
* @deprecated
|
||||
*/
|
||||
@Override
|
||||
|
@ -274,7 +285,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getAttribute(String)
|
||||
* @see jakarta.servlet.ServletRequest#getAttribute(String)
|
||||
*/
|
||||
@Override
|
||||
public Object getAttribute(String arg0) {
|
||||
|
@ -282,7 +293,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getAttributeNames()
|
||||
* @see jakarta.servlet.ServletRequest#getAttributeNames()
|
||||
*/
|
||||
@Override
|
||||
public Enumeration<String> getAttributeNames() {
|
||||
|
@ -290,7 +301,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getCharacterEncoding()
|
||||
* @see jakarta.servlet.ServletRequest#getCharacterEncoding()
|
||||
*/
|
||||
@Override
|
||||
public String getCharacterEncoding() {
|
||||
|
@ -298,7 +309,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#setCharacterEncoding(String)
|
||||
* @see jakarta.servlet.ServletRequest#setCharacterEncoding(String)
|
||||
*/
|
||||
@Override
|
||||
public void setCharacterEncoding(String arg0)
|
||||
|
@ -306,7 +317,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getContentLength()
|
||||
* @see jakarta.servlet.ServletRequest#getContentLength()
|
||||
*/
|
||||
@Override
|
||||
public int getContentLength() {
|
||||
|
@ -331,7 +342,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getContentType()
|
||||
* @see jakarta.servlet.ServletRequest#getContentType()
|
||||
*/
|
||||
@Override
|
||||
public String getContentType() {
|
||||
|
@ -339,7 +350,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getInputStream()
|
||||
* @see jakarta.servlet.ServletRequest#getInputStream()
|
||||
*/
|
||||
@Override
|
||||
public ServletInputStream getInputStream() throws IOException {
|
||||
|
@ -357,7 +368,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getParameter(String)
|
||||
* @see jakarta.servlet.ServletRequest#getParameter(String)
|
||||
*/
|
||||
@Override
|
||||
public String getParameter(String arg0) {
|
||||
|
@ -365,7 +376,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getParameterNames()
|
||||
* @see jakarta.servlet.ServletRequest#getParameterNames()
|
||||
*/
|
||||
@Override
|
||||
public Enumeration<String> getParameterNames() {
|
||||
|
@ -373,7 +384,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getParameterValues(String)
|
||||
* @see jakarta.servlet.ServletRequest#getParameterValues(String)
|
||||
*/
|
||||
@Override
|
||||
public String[] getParameterValues(String arg0) {
|
||||
|
@ -381,7 +392,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getParameterMap()
|
||||
* @see jakarta.servlet.ServletRequest#getParameterMap()
|
||||
*/
|
||||
@Override
|
||||
public Map<String, String[]> getParameterMap() {
|
||||
|
@ -389,7 +400,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getProtocol()
|
||||
* @see jakarta.servlet.ServletRequest#getProtocol()
|
||||
*/
|
||||
@Override
|
||||
public String getProtocol() {
|
||||
|
@ -397,7 +408,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getScheme()
|
||||
* @see jakarta.servlet.ServletRequest#getScheme()
|
||||
*/
|
||||
@Override
|
||||
public String getScheme() {
|
||||
|
@ -405,7 +416,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see javax.servlet.ServletRequest#getServerName()
|
||||
* @see jakarta.servlet.ServletRequest#getServerName()
|
||||
*/
|
||||