当前位置: 首页>>代码示例>>Java>>正文


Java HTTPServerList.clear方法代码示例

本文整理汇总了Java中org.cybergarage.http.HTTPServerList.clear方法的典型用法代码示例。如果您正苦于以下问题:Java HTTPServerList.clear方法的具体用法?Java HTTPServerList.clear怎么用?Java HTTPServerList.clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.cybergarage.http.HTTPServerList的用法示例。


在下文中一共展示了HTTPServerList.clear方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: stop

import org.cybergarage.http.HTTPServerList; //导入方法依赖的package包/类
public boolean stop() {
    unsubscribe();
    SSDPNotifySocketList ssdpNotifySocketList = getSSDPNotifySocketList();
    ssdpNotifySocketList.stop();
    ssdpNotifySocketList.close();
    ssdpNotifySocketList.clear();
    SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
    ssdpSearchResponseSocketList.stop();
    ssdpSearchResponseSocketList.close();
    ssdpSearchResponseSocketList.clear();
    HTTPServerList httpServerList = getHTTPServerList();
    httpServerList.stop();
    httpServerList.close();
    httpServerList.clear();
    Disposer disposer = getDeviceDisposer();
    if (disposer != null) {
        disposer.stop();
        setDeviceDisposer(null);
    }
    RenewSubscriber renewSub = getRenewSubscriber();
    if (renewSub != null) {
        renewSub.stop();
        setRenewSubscriber(null);
    }
    return true;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:27,代码来源:ControlPoint.java

示例2: stop

import org.cybergarage.http.HTTPServerList; //导入方法依赖的package包/类
private boolean stop(boolean doByeBye)
{
	if (doByeBye == true)
		byebye();
	
	HTTPServerList httpServerList = getHTTPServerList();
	httpServerList.stop();
	httpServerList.close();
	httpServerList.clear();
	
	SSDPSearchSocketList ssdpSearchSockList = getSSDPSearchSocketList();
	ssdpSearchSockList.stop();
	ssdpSearchSockList.close();
	ssdpSearchSockList.clear();
	
	Advertiser adv = getAdvertiser();
	if (adv != null) {
		adv.stop();
		setAdvertiser(null);
	}

	return true;
}
 
开发者ID:NoYouShutup,项目名称:CryptMeme,代码行数:24,代码来源:Device.java

示例3: stop

import org.cybergarage.http.HTTPServerList; //导入方法依赖的package包/类
private boolean stop(boolean doByeBye) {
	if (doByeBye == true)
		byebye();

	HTTPServerList httpServerList = getHTTPServerList();
	httpServerList.stop();
	httpServerList.close();
	httpServerList.clear();

	SSDPSearchSocketList ssdpSearchSockList = getSSDPSearchSocketList();
	ssdpSearchSockList.stop();
	ssdpSearchSockList.close();
	ssdpSearchSockList.clear();

	Advertiser adv = getAdvertiser();
	if (adv != null) {
		adv.stop();
		setAdvertiser(null);
	}

	return true;
}
 
开发者ID:NoYouShutup,项目名称:CryptMeme,代码行数:23,代码来源:Device.java

示例4: stop

import org.cybergarage.http.HTTPServerList; //导入方法依赖的package包/类
public boolean stop()
{ 
	unsubscribe();
	
	SSDPNotifySocketList ssdpNotifySocketList = getSSDPNotifySocketList();
	ssdpNotifySocketList.stop();
	ssdpNotifySocketList.close();
	ssdpNotifySocketList.clear();
	
	SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
	ssdpSearchResponseSocketList.stop();
	ssdpSearchResponseSocketList.close();
	ssdpSearchResponseSocketList.clear();

	HTTPServerList httpServerList = getHTTPServerList();
	httpServerList.stop();
	httpServerList.close();
	httpServerList.clear();
		
	////////////////////////////////////////
	// Disposer
	////////////////////////////////////////
	
	Disposer disposer = getDeviceDisposer();
	if (disposer != null) {
		disposer.stop();
		setDeviceDisposer(null);
	}
	
	////////////////////////////////////////
	// Subscriber
	////////////////////////////////////////
	
	RenewSubscriber renewSub = getRenewSubscriber();
	if (renewSub != null) {
		renewSub.stop();
		setRenewSubscriber(null);
	}
	
	// I2P so we will re-notify on restart
	DeviceList dl = getDeviceList();
	for (int i = 0; i < dl.size(); i++) {
		removeDevice(dl.getDevice(i));
	}

	return true;
}
 
开发者ID:NoYouShutup,项目名称:CryptMeme,代码行数:48,代码来源:ControlPoint.java

示例5: stop

import org.cybergarage.http.HTTPServerList; //导入方法依赖的package包/类
public boolean stop()
{ 
	unsubscribe();
	
	SSDPNotifySocketList ssdpNotifySocketList = getSSDPNotifySocketList();
	ssdpNotifySocketList.stop();
	ssdpNotifySocketList.close();
	ssdpNotifySocketList.clear();
	
	SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
	ssdpSearchResponseSocketList.stop();
	ssdpSearchResponseSocketList.close();
	ssdpSearchResponseSocketList.clear();

	HTTPServerList httpServerList = getHTTPServerList();
	httpServerList.stop();
	httpServerList.close();
	httpServerList.clear();
		
	////////////////////////////////////////
	// Disposer
	////////////////////////////////////////
	
	Disposer disposer = getDeviceDisposer();
	if (disposer != null) {
		disposer.stop();
		setDeviceDisposer(null);
	}
	
	////////////////////////////////////////
	// Subscriber
	////////////////////////////////////////
	
	RenewSubscriber renewSub = getRenewSubscriber();
	if (renewSub != null) {
		renewSub.stop();
		setRenewSubscriber(null);
	}
	
	return true;
}
 
开发者ID:jimdowling,项目名称:nat-traverser,代码行数:42,代码来源:ControlPoint.java


注:本文中的org.cybergarage.http.HTTPServerList.clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。