本文整理匯總了Java中tigase.jaxmpp.j2se.Jaxmpp類的典型用法代碼示例。如果您正苦於以下問題:Java Jaxmpp類的具體用法?Java Jaxmpp怎麽用?Java Jaxmpp使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Jaxmpp類屬於tigase.jaxmpp.j2se包,在下文中一共展示了Jaxmpp類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: reconnect
import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
private void reconnect(final String newHost) {
log.info("See other host: " + newHost);
try {
terminateAllWorkers();
Object x1 = this.context.getSessionObject().getProperty(Jaxmpp.SYNCHRONIZED_MODE);
this.context.getSessionObject().clear(SessionObject.Scope.stream);
this.context.getSessionObject().setProperty(SERVER_HOST, newHost);
worker = null;
reader = null;
writer = null;
this.context.getSessionObject().setProperty(RECONNECTING_KEY, Boolean.TRUE);
this.context.getSessionObject().setProperty(Jaxmpp.SYNCHRONIZED_MODE, x1);
log.finest("Waiting for workers termination");
// start();
} catch (JaxmppException e) {
e.printStackTrace();
}
}
示例2: reconnect
import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
private void reconnect(final String newHost) {
log.info("See other host: " + newHost);
try {
terminateAllWorkers();
Object x1 = this.sessionObject.getProperty(Jaxmpp.SYNCHRONIZED_MODE);
this.sessionObject.clear();
this.sessionObject.setProperty(SERVER_HOST, newHost);
worker = null;
reader = null;
writer = null;
this.sessionObject.setProperty(RECONNECTING_KEY, Boolean.TRUE);
this.sessionObject.setProperty(Jaxmpp.SYNCHRONIZED_MODE, x1);
log.finest("Waiting for workers termination");
// start();
} catch (JaxmppException e) {
e.printStackTrace();
}
}
示例3: afterPropertiesSet
import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
@Override
public void afterPropertiesSet() throws Exception {
this.mucDomain = "muc." + this.domain;
this.jaxmpp = new Jaxmpp();
}
示例4: getJaxmpp
import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
@Override
public Jaxmpp getJaxmpp() {
return this.jaxmpp;
}
示例5: getJaxmpp
import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
public Jaxmpp getJaxmpp();