public abstract class AbstractMOServlet extends javax.servlet.http.HttpServlet
Note: This servlet will immediately ack the callback as soon as it is validated. Your subclass will consume the callback object asynchronously. This is because it is important to keep latency of the acknowledgement to a minimum in order to maintain throughput when operating at any sort of volume. You are responsible for persisting this object in the event of any failure whilst processing
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.Executor |
consumer |
| Constructor and Description |
|---|
AbstractMOServlet(boolean validateSignature,
java.lang.String signatureSharedSecret,
boolean validateUsernamePassword,
java.lang.String expectedUsername,
java.lang.String expectedPassword) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consume(MO mo)
This method is asynchronously passed a complete MO instance to be dealt with by your application logic
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected java.util.concurrent.Executor consumer
public AbstractMOServlet(boolean validateSignature, java.lang.String signatureSharedSecret, boolean validateUsernamePassword, java.lang.String expectedUsername, java.lang.String expectedPassword)
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException