|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transport.AbstractConnector
org.mule.transport.xmpp.XmppConnector
public class XmppConnector
XmppConnector
represents a connection to a Jabber server.
Field Summary | |
---|---|
static String |
XMPP
|
static String |
XMPP_FROM
|
static String |
XMPP_GROUP_CHAT
|
static String |
XMPP_NICKNAME
|
static String |
XMPP_RECIPIENT
|
static String |
XMPP_RESOURCE
|
static String |
XMPP_SUBJECT
|
static String |
XMPP_THREAD
|
static String |
XMPP_TO
|
static String |
XMPP_TYPE
|
Fields inherited from interface org.mule.api.transport.Connector |
---|
INT_VALUE_NOT_SET |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
XmppConnector(MuleContext context)
|
Method Summary | |
---|---|
protected void |
connectToJabberServer()
|
protected void |
createXmppConnection()
|
protected void |
doConnect()
Template method where any connections should be made for the connector |
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected void |
doInitialise()
|
protected void |
doStart()
Template method to perform any work when starting the connectoe |
protected void |
doStop()
Template method to perform any work when stopping the connectoe |
XmppConversationFactory |
getConversationFactory()
|
String |
getHost()
|
String |
getPassword()
|
int |
getPort()
|
String |
getProtocol()
|
protected static String |
getRecipient(ImmutableEndpoint endpoint)
|
String |
getResource()
|
String |
getServiceName()
|
String |
getUser()
|
protected org.jivesoftware.smack.XMPPConnection |
getXmppConnection()
|
boolean |
isCreateAccount()
|
boolean |
isResponseEnabled()
|
void |
setConversationFactory(XmppConversationFactory conversationFactory)
|
void |
setCreateAccount(boolean createAccount)
|
void |
setHost(String host)
|
void |
setPassword(String password)
|
void |
setPort(int port)
|
void |
setResource(String resource)
|
void |
setServiceName(String serviceName)
|
void |
setUser(String user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String XMPP
public static final String XMPP_RESOURCE
public static final String XMPP_SUBJECT
public static final String XMPP_THREAD
public static final String XMPP_TO
public static final String XMPP_FROM
public static final String XMPP_GROUP_CHAT
public static final String XMPP_NICKNAME
public static final String XMPP_RECIPIENT
public static final String XMPP_TYPE
Constructor Detail |
---|
public XmppConnector(MuleContext context)
Method Detail |
---|
protected static String getRecipient(ImmutableEndpoint endpoint)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doStart() throws MuleException
AbstractConnector
doStart
in class AbstractConnector
MuleException
- if the method failsprotected void doStop() throws MuleException
AbstractConnector
doStop
in class AbstractConnector
MuleException
- if the method failspublic String getProtocol()
protected void createXmppConnection() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
protected void connectToJabberServer() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public boolean isResponseEnabled()
isResponseEnabled
in interface Connector
isResponseEnabled
in class AbstractConnector
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getServiceName()
public void setServiceName(String serviceName)
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 isCreateAccount()
public void setCreateAccount(boolean createAccount)
public XmppConversationFactory getConversationFactory()
public void setConversationFactory(XmppConversationFactory conversationFactory)
protected org.jivesoftware.smack.XMPPConnection getXmppConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |