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


Java CoapExchange.setMaxAge方法代码示例

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


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

示例1: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10472.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10472PCD01Resource.java

示例2: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	System.out.println(this.getClass().getName() + " GET ");
	exchange.setMaxAge(5);
	if (wasUpdated) {
		exchange.respond(CONTENT, data, dataCf);
		wasUpdated = false;
	} else {
		exchange.respond(CONTENT, time, dataCf);
	}
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:13,代码来源:ObservableResource.java

示例3: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10420.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10420PCD01Resource.java

示例4: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10408.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10408PCD01Resource.java

示例5: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10404.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10404PCD01Resource.java

示例6: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10415.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10415PCD01Resource.java

示例7: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10407.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10407PCD01Resource.java

示例8: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, m_device_10417.m_Msg.toString(),dataCf);
}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:8,代码来源:D10417PCD01Resource.java

示例9: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10404.getM_MetricString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10404MeasurmentResource.java

示例10: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10472.getM_MetricString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10472MeasurmentResource.java

示例11: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	

	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10408.getM_MDSString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10408Resource.java

示例12: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10407.getM_MetricString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10407MeasurmentResource.java

示例13: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10420.getM_MetricString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10420MeasurmentResource.java

示例14: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	
	
	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10415.getM_MetricString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10415MeasurmentResource.java

示例15: handleGET

import org.eclipse.californium.core.server.resources.CoapExchange; //导入方法依赖的package包/类
@Override
public void handleGET(CoapExchange exchange) {
	// TODO Auto-generated method stub
	

	exchange.setMaxAge(5);
	exchange.respond(CONTENT, device10407.getM_MDSString(),dataCf);

}
 
开发者ID:AINLAB,项目名称:OHP-M2M,代码行数:10,代码来源:D10407Resource.java


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