public abstract class SlackEventsApiServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
SlackEventsApiServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected String |
doReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req)
Reads the request body and returns the value as a string.
|
protected String |
getSlackSigningSecret()
Returns the signing secret supposed to be used for verifying requests from Slack.
|
void |
init() |
protected boolean |
isSignatureVerifierEnabled()
If you'd like to do the same in a servlet filter, return false instead.
|
protected abstract void |
setupDispatcher(EventsDispatcher dispatcher) |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected abstract void setupDispatcher(EventsDispatcher dispatcher)
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
doPost in class javax.servlet.http.HttpServletIOExceptionprotected String getSlackSigningSecret()
protected boolean isSignatureVerifierEnabled()
protected String doReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req) throws IOException
IOExceptionCopyright © 2020. All rights reserved.