Skip to content

Commit

Permalink
Update TPSServlet to use @WebServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 18, 2023
1 parent 8ef4e86 commit 783c341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 0 additions & 10 deletions base/tps/shared/webapps/tps/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@

<display-name>Token Processing Service</display-name>

<servlet>
<servlet-name>tps</servlet-name>
<servlet-class>org.dogtagpki.server.tps.TPSServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>tps</servlet-name>
<url-pattern>/tps</url-pattern>
</servlet-mapping>

<security-constraint>
<web-resource-collection>
<web-resource-name>Account Services</web-resource-name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand All @@ -28,6 +29,10 @@
/**
* @author Endi S. Dewata <[email protected]>
*/
@WebServlet(
name = "tps",
urlPatterns = "/tps"
)
public class TPSServlet extends HttpServlet {

public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TPSServlet.class);
Expand Down

0 comments on commit 783c341

Please sign in to comment.