Class QSlackImplementation
java.lang.Object
com.kingsrook.qqq.slack.QSlackImplementation
QQQ Slack implementation. Given a QInstance, defines all routes needed
to respond to Slack http requests and give appropriate responses
-
Constructor Summary
ConstructorsConstructorDescriptionQSlackImplementation
(QInstance qInstance) QSlackImplementation
(String qInstanceFilePath) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertWidgetDataToSlackMessage
(QWidgetMetaDataInterface widgetMetaData, RenderWidgetOutput widgetOutput) io.javalin.apibuilder.EndpointGroup
static void
handleException
(io.javalin.http.Context context, Exception e) static void
postMessage
(String text) send a message to Slackstatic void
setupSession
(io.javalin.http.Context context, AbstractActionInput input)
-
Constructor Details
-
QSlackImplementation
- Throws:
QInstanceValidationException
-
QSlackImplementation
- Throws:
IOException
-
-
Method Details
-
getRoutes
public io.javalin.apibuilder.EndpointGroup getRoutes() -
convertWidgetDataToSlackMessage
public static String convertWidgetDataToSlackMessage(QWidgetMetaDataInterface widgetMetaData, RenderWidgetOutput widgetOutput) throws QException - Throws:
QException
-
postMessage
send a message to Slack -
setupSession
public static void setupSession(io.javalin.http.Context context, AbstractActionInput input) throws QModuleDispatchException, QAuthenticationException -
handleException
-