@UriEndpoint(scheme="slack",
title="Slack",
syntax="slack:channel",
producerOnly=true,
label="social")
public class SlackEndpoint
extends org.apache.camel.impl.DefaultEndpoint
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() |
String |
getIconEmoji() |
String |
getIconUrl() |
String |
getUsername() |
String |
getWebhookUrl() |
boolean |
isSingleton() |
void |
setChannel(String channel)
The channel name (syntax #name) or slackuser (syntax @userName) to send a message directly to an user.
|
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 |
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, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public 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
Exception
public boolean isSingleton()
public 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)
Apache Camel