Skip to content

Commit

Permalink
FOP-3188: Switch to Jakarta servlet API
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsteiner1984 committed Jul 11, 2024
1 parent 8b25c09 commit 639d5b6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions fop-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
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;
Expand All @@ -34,6 +33,7 @@
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.
Expand Down
9 changes: 5 additions & 4 deletions fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
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;
Expand All @@ -51,6 +47,11 @@
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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
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.
Expand Down

0 comments on commit 639d5b6

Please sign in to comment.