當前位置: 首頁>>代碼示例>>Java>>正文


Java Jaxmpp類代碼示例

本文整理匯總了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();
	}
}
 
開發者ID:horsefaced,項目名稱:jaxmpp-android,代碼行數:24,代碼來源:SocketConnector.java

示例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();
	}
}
 
開發者ID:liule,項目名稱:tigase-jaxmpp2,代碼行數:24,代碼來源:SocketConnector.java

示例3: afterPropertiesSet

import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
@Override
public void afterPropertiesSet() throws Exception {
    this.mucDomain = "muc." + this.domain;
    this.jaxmpp = new Jaxmpp();
}
 
開發者ID:openfin,項目名稱:openchat-java-client,代碼行數:6,代碼來源:XMPPClientImpl.java

示例4: getJaxmpp

import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
@Override
public Jaxmpp getJaxmpp() {
    return this.jaxmpp;
}
 
開發者ID:openfin,項目名稱:openchat-java-client,代碼行數:5,代碼來源:XMPPClientImpl.java

示例5: getJaxmpp

import tigase.jaxmpp.j2se.Jaxmpp; //導入依賴的package包/類
public Jaxmpp getJaxmpp(); 
開發者ID:openfin,項目名稱:openchat-java-client,代碼行數:2,代碼來源:XMPPClient.java


注:本文中的tigase.jaxmpp.j2se.Jaxmpp類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。