本文整理汇总了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();