Class SlackResource

java.lang.Object
org.apache.camel.quarkus.component.slack.it.SlackResource

@Path("/slack") @ApplicationScoped public class SlackResource extends Object
  • Field Details

    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
    • consumerTemplate

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
    • slackServerUrl

      String slackServerUrl
    • slackToken

      String slackToken
    • slackWebHookUrl

      String slackWebHookUrl
  • Constructor Details

    • SlackResource

      public SlackResource()
  • Method Details

    • getSlackMessages

      @Path("/messages") @GET @Produces("application/json") public SlackMessageResponse getSlackMessages() throws Exception
      Throws:
      Exception
    • createSlackMessageWithToken

      @Path("/message/token") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createSlackMessageWithToken(String message) throws Exception
      Throws:
      Exception
    • createSlackMessageWithWebhook

      @Path("/message/webhook") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createSlackMessageWithWebhook(String message) throws Exception
      Throws:
      Exception
    • createBlockMessage

      @Path("/message/block") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createBlockMessage(String text) throws Exception
      Throws:
      Exception