Skip to content

Commit

Permalink
Update TPSPhoneHome to use @WebServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 18, 2023
1 parent d6da2dc commit 8ef4e86
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,21 +7,11 @@

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

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

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

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

<servlet-mapping>
<servlet-name>tps</servlet-name>
<url-pattern>/tps</url-pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand All @@ -15,6 +16,10 @@

import com.netscape.cmscore.apps.CMS;

@WebServlet(
name = "phoneHome",
urlPatterns = "/phoneHome"
)
public class TPSPhoneHome extends HttpServlet {

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

0 comments on commit 8ef4e86

Please sign in to comment.