@UriEndpoint(firstVersion="2.16.0",
scheme="slack",
title="Slack",
syntax="slack:channel",
category=SOCIAL)
public class SlackEndpoint
extends org.apache.camel.support.ScheduledPollEndpoint
| Constructor and Description |
|---|
SlackEndpoint(String uri,
String channelName,
SlackComponent component)
Constructor for SlackEndpoint
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getChannel() |
com.slack.api.model.ConversationType |
getConversationType() |
String |
getIconEmoji() |
String |
getIconUrl() |
String |
getMaxResults() |
String |
getServerUrl() |
String |
getToken() |
String |
getUsername() |
String |
getWebhookUrl() |
boolean |
isNaturalOrder() |
void |
setChannel(String channel)
The channel name (syntax #name) or slackuser (syntax @userName) to send a message directly to an user.
|
void |
setConversationType(com.slack.api.model.ConversationType conversationType)
The type of the conversation
|
void |
setIconEmoji(String iconEmoji)
Use a Slack emoji as an avatar
|
void |
setIconUrl(String iconUrl)
The avatar that the component will use when sending message to a channel or user.
|
void |
setMaxResults(String maxResult)
The Max Result for the poll
|
void |
setNaturalOrder(boolean naturalOrder)
Is consuming message in natural order
|
void |
setServerUrl(String serverUrl)
The Server URL of the Slack instance
|
void |
setToken(String token)
The token to use
|
void |
setUsername(String username)
This is the username that the bot will have when sending messages to a channel or user.
|
void |
setWebhookUrl(String webhookUrl)
The incoming webhook URL
|
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic SlackEndpoint(String uri, String channelName, SlackComponent component)
uri - the full component urlchannelName - the channel or username the message is directed atcomponent - the component that was createdpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic void setWebhookUrl(String webhookUrl)
public String getWebhookUrl()
public String getChannel()
public void setChannel(String channel)
public String getUsername()
public void setUsername(String username)
public String getIconUrl()
public void setIconUrl(String iconUrl)
public String getIconEmoji()
public void setIconEmoji(String iconEmoji)
public String getToken()
public void setToken(String token)
public String getMaxResults()
public void setMaxResults(String maxResult)
public String getServerUrl()
public void setServerUrl(String serverUrl)
public void setNaturalOrder(boolean naturalOrder)
public boolean isNaturalOrder()
public void setConversationType(com.slack.api.model.ConversationType conversationType)
public com.slack.api.model.ConversationType getConversationType()
Apache Camel