@Beta public class AppEngineNotificationServlet extends javax.servlet.http.HttpServlet
Beta In order to use this servlet you need to register the servlet in your web.xml. You may
optionally extend AppEngineNotificationServlet with custom behavior.
It is a simple wrapper around WebhookUtils.processWebhookNotification(HttpServletRequest, HttpServletResponse,
DataStoreFactory) that uses AppEngineDataStoreFactory.getDefaultInstance(), so you may
alternatively call that method instead from your HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) with no loss of
functionality. Sample web.xml setup:
{@literal <}servlet{@literal >}
{@literal <}servlet-name{@literal >}AppEngineNotificationServlet{@literal <}/servlet-name{@literal >}
{@literal <}servlet-class{@literal >}com.google.api.client.googleapis.extensions.appengine.notifications.AppEngineNotificationServlet{@literal <}/servlet-class{@literal >}
{@literal <}/servlet{@literal >}
{@literal <}servlet-mapping{@literal >}
{@literal <}servlet-name{@literal >}AppEngineNotificationServlet{@literal <}/servlet-name{@literal >}
{@literal <}url-pattern{@literal >}/notifications{@literal <}/url-pattern{@literal >}
{@literal <}/servlet-mapping{@literal >}
| Constructor and Description |
|---|
AppEngineNotificationServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2010–2022 Google. All rights reserved.