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 StringconvertWidgetDataToSlackMessage(QWidgetMetaDataInterface widgetMetaData, RenderWidgetOutput widgetOutput) io.javalin.apibuilder.EndpointGroupstatic voidhandleException(io.javalin.http.Context context, Exception e) static voidpostMessage(String text) send a message to Slackstatic voidsetupSession(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
-