]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-3188: Switch to Jakarta servlet API
authorSimon Steiner <ssteiner@apache.org>
Thu, 11 Jul 2024 07:23:15 +0000 (08:23 +0100)
committerSimon Steiner <ssteiner@apache.org>
Thu, 11 Jul 2024 07:23:15 +0000 (08:23 +0100)
fop-core/pom.xml
fop-core/src/main/java/org/apache/fop/servlet/FopPrintServlet.java
fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
fop-core/src/main/java/org/apache/fop/servlet/ServletContextURIResolver.java

index b142cacd13ca2ea01ec3b3c987aedcc98e2d4cbf..a6b529e6283efd7060c10844a1ad858af2dfa786 100644 (file)
@@ -89,9 +89,9 @@
       <version>${commons.logging.version}</version>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
-      <version>2.2</version>
+      <groupId>jakarta.servlet</groupId>
+      <artifactId>jakarta.servlet-api</artifactId>
+      <version>5.0.0</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
index dddd1ec5e767975655ad6a9ae0b93d257662831f..8fbe79d7afc542281a90235aa68a7b763216e9af 100644 (file)
@@ -22,7 +22,6 @@ package org.apache.fop.servlet;
 import java.io.IOException;
 import java.io.PrintWriter;
 
-import javax.servlet.http.HttpServletResponse;
 import javax.xml.transform.Result;
 import javax.xml.transform.Source;
 import javax.xml.transform.Transformer;
@@ -34,6 +33,7 @@ import org.apache.fop.apps.FOUserAgent;
 import org.apache.fop.apps.Fop;
 import org.apache.fop.apps.MimeConstants;
 
+import jakarta.servlet.http.HttpServletResponse;
 
 /**
  * Example servlet to generate a fop printout from a servlet.
index 406ead324b1de017b4c93fa851a369cb3899e3ae..9b8c9a9893730872869a945614dfa9e03261c300 100644 (file)
@@ -26,10 +26,6 @@ import java.io.PrintWriter;
 import java.net.URI;
 import java.net.URL;
 
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
 import javax.xml.transform.Result;
 import javax.xml.transform.Source;
 import javax.xml.transform.Transformer;
@@ -51,6 +47,11 @@ import org.apache.fop.apps.FopFactory;
 import org.apache.fop.apps.FopFactoryBuilder;
 import org.apache.fop.apps.MimeConstants;
 
+import jakarta.servlet.ServletException;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+
 /**
  * Example servlet to generate a PDF from a servlet.
  * <br>
index 413dac76d4213ca73234f1a831918a958245d6da..b0422f632720f41f115733ef89119dacc1b7ad56 100644 (file)
@@ -23,12 +23,13 @@ import java.io.InputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
 
-import javax.servlet.ServletContext;
 import javax.xml.transform.Source;
 import javax.xml.transform.TransformerException;
 import javax.xml.transform.URIResolver;
 import javax.xml.transform.stream.StreamSource;
 
+import jakarta.servlet.ServletContext;
+
 /**
  * This class is a URIResolver implementation that provides access to resources in the WEB-INF
  * directory of a web application using "servlet-content:" URIs.