public class XmppEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware
Constructor and Description |
---|
XmppEndpoint() |
XmppEndpoint(String endpointUri)
Deprecated.
|
XmppEndpoint(String uri,
XmppComponent component) |
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smack.XMPPConnection |
createConnection() |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
org.apache.camel.Exchange |
createExchange(org.apache.camel.ExchangePattern pattern) |
org.apache.camel.Exchange |
createExchange(org.jivesoftware.smack.packet.Message message) |
org.apache.camel.Producer |
createGroupChatProducer() |
org.apache.camel.Producer |
createPrivateChatProducer(String participant) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStop() |
XmppBinding |
getBinding() |
String |
getChatId() |
String |
getConnectionDescription() |
static String |
getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection) |
int |
getConnectionPollDelay() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
String |
getHost() |
String |
getNickname() |
String |
getParticipant() |
String |
getPassword() |
int |
getPort() |
String |
getResource() |
String |
getRoom() |
String |
getServiceName() |
String |
getUser() |
static String |
getXmppExceptionLogMessage(org.jivesoftware.smack.XMPPException e) |
boolean |
isCreateAccount() |
boolean |
isLogin() |
boolean |
isSingleton() |
boolean |
isTestConnectionOnStartup() |
String |
resolveRoom(org.jivesoftware.smack.XMPPConnection connection) |
void |
setBinding(XmppBinding binding)
Sets the binding used to convert from a Camel message to and from an XMPP
message
|
void |
setConnectionPollDelay(int connectionPollDelay) |
void |
setCreateAccount(boolean createAccount) |
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) |
void |
setHost(String host) |
void |
setLogin(boolean login) |
void |
setNickname(String nickname) |
void |
setParticipant(String participant) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setResource(String resource) |
void |
setRoom(String room) |
void |
setServiceName(String serviceName) |
void |
setTestConnectionOnStartup(boolean testConnectionOnStartup) |
void |
setUser(String user) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createPollingConsumer, doStart, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public XmppEndpoint()
public XmppEndpoint(String uri, XmppComponent component)
@Deprecated public XmppEndpoint(String endpointUri)
public org.apache.camel.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.Producer createGroupChatProducer() throws Exception
Exception
public org.apache.camel.Producer createPrivateChatProducer(String participant) throws Exception
Exception
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
createExchange
in interface org.apache.camel.Endpoint
createExchange
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Exchange createExchange(org.jivesoftware.smack.packet.Message message)
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
public org.jivesoftware.smack.XMPPConnection createConnection() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public String resolveRoom(org.jivesoftware.smack.XMPPConnection connection) throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public String getConnectionDescription()
public static String getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection)
public static String getXmppExceptionLogMessage(org.jivesoftware.smack.XMPPException e)
public String getChatId()
public XmppBinding getBinding()
public void setBinding(XmppBinding binding)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public String getResource()
public void setResource(String resource)
public boolean isLogin()
public void setLogin(boolean login)
public boolean isCreateAccount()
public void setCreateAccount(boolean createAccount)
public String getRoom()
public void setRoom(String room)
public String getParticipant()
public void setParticipant(String participant)
public String getNickname()
public void setNickname(String nickname)
public void setServiceName(String serviceName)
public String getServiceName()
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public boolean isTestConnectionOnStartup()
public void setTestConnectionOnStartup(boolean testConnectionOnStartup)
public int getConnectionPollDelay()
public void setConnectionPollDelay(int connectionPollDelay)
Apache Camel