|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.xmpp.XmppEndpoint
public class XmppEndpoint
A XMPP Endpoint
| Constructor Summary | |
|---|---|
XmppEndpoint()
|
|
XmppEndpoint(String endpointUri)
|
|
XmppEndpoint(String uri,
XmppComponent component)
|
|
| Method Summary | |
|---|---|
org.jivesoftware.smack.XMPPConnection |
createConnection()
|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified |
Exchange |
createExchange(ExchangePattern pattern)
Create a new exchange for communicating with this endpoint with the specified ExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange |
Exchange |
createExchange(org.jivesoftware.smack.packet.Message message)
|
Producer |
createGroupChatProducer()
|
Producer |
createPrivateChatProducer(String participant)
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
protected void |
destroy()
|
XmppBinding |
getBinding()
|
String |
getChatId()
|
static String |
getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection)
|
HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy used |
String |
getHost()
|
String |
getNickname()
|
String |
getParticipant()
|
String |
getPassword()
|
int |
getPort()
|
String |
getResource()
|
String |
getRoom()
|
String |
getServiceName()
|
String |
getUser()
|
boolean |
isCreateAccount()
|
boolean |
isLogin()
|
boolean |
isSingleton()
Whether this class supports being singleton or not. |
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 |
setCreateAccount(boolean createAccount)
|
void |
setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use |
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 |
setUser(String user)
|
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
|---|
configureProperties, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmppEndpoint()
public XmppEndpoint(String uri,
XmppComponent component)
public XmppEndpoint(String endpointUri)
| Method Detail |
|---|
public Producer createProducer()
throws Exception
Endpoint
createProducer in interface EndpointException - can be thrown
public Producer createGroupChatProducer()
throws Exception
Exception
public Producer createPrivateChatProducer(String participant)
throws Exception
Exception
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
createConsumer in interface Endpointprocessor - the given processor
Exception - can be thrownpublic Exchange createExchange(ExchangePattern pattern)
EndpointExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange
createExchange in interface EndpointcreateExchange in class DefaultEndpointpattern - the message exchange pattern for the exchange
public Exchange createExchange(org.jivesoftware.smack.packet.Message message)
protected String createEndpointUri()
DefaultEndpoint
createEndpointUri in class DefaultEndpointpublic boolean isSingleton()
IsSingleton
isSingleton in interface 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.XMPPExceptionpublic static String getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection)
public String getChatId()
protected void destroy()
throws Exception
Exceptionpublic 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 HeaderFilterStrategy getHeaderFilterStrategy()
HeaderFilterStrategyAware
getHeaderFilterStrategy in interface HeaderFilterStrategyAwarepublic void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
HeaderFilterStrategyAware
setHeaderFilterStrategy in interface HeaderFilterStrategyAwareheaderFilterStrategy - the strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||