Class QBaseCustomLambdaHandler
java.lang.Object
com.kingsrook.qqq.lambda.QAbstractLambdaHandler
com.kingsrook.qqq.lambda.QBaseCustomLambdaHandler
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
- Direct Known Subclasses:
ExampleLambdaHandler
QQQ base class for "Custom" lambda handlers. e.g., completely custom code
to run in your QQQ app, outside of tables or processes (for those standard
use-cases, see QStandardLambdaHandler).
Subclasses here can just override `handleJsonRequest`, and avoid seeing the
lambda-ness of lambda.
Such subclasses can then have easy standalone unit tests - just testing their
logic, and not the lambda-ness.
-
Field Summary
Fields inherited from class com.kingsrook.qqq.lambda.QAbstractLambdaHandler
context, GENERIC_SERVER_ERROR, OK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QLambdaResponsehandleJsonRequest(QLambdaRequest request, org.json.JSONObject bodyJsonObject) Meant to be overridden by subclasses, to provide functionality, if needed.protected QLambdaResponsehandleRequest(QLambdaRequest request) Methods inherited from class com.kingsrook.qqq.lambda.QAbstractLambdaHandler
handleRequest, log, log, log, writeResponse
-
Constructor Details
-
QBaseCustomLambdaHandler
public QBaseCustomLambdaHandler()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin classQAbstractLambdaHandler- Throws:
QException
-
handleJsonRequest
protected QLambdaResponse handleJsonRequest(QLambdaRequest request, org.json.JSONObject bodyJsonObject) throws QException Meant to be overridden by subclasses, to provide functionality, if needed.- Overrides:
handleJsonRequestin classQAbstractLambdaHandler- Throws:
QException
-