本文整理了Java中org.eclipse.californium.core.coap.OptionSet.hasProxyScheme()
方法的一些代码示例,展示了OptionSet.hasProxyScheme()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OptionSet.hasProxyScheme()
方法的具体详情如下:
包路径:org.eclipse.californium.core.coap.OptionSet
类名称:OptionSet
方法名:hasProxyScheme
[英]Checks if the Proxy-Scheme option is present.
[中]检查代理方案选项是否存在。
代码示例来源:origin: eclipse/californium
if (hasProxyUri())
options.add(new Option(OptionNumberRegistry.PROXY_URI, getProxyUri()));
if (hasProxyScheme())
options.add(new Option(OptionNumberRegistry.PROXY_SCHEME, getProxyScheme()));
代码示例来源:origin: org.eclipse.californium/californium-core
if (hasProxyUri())
options.add(new Option(OptionNumberRegistry.PROXY_URI, getProxyUri()));
if (hasProxyScheme())
options.add(new Option(OptionNumberRegistry.PROXY_SCHEME, getProxyScheme()));
代码示例来源:origin: eclipse/californium
} else if (request.getOptions().hasProxyScheme()) {
if (request.getOptions().getProxyScheme().startsWith("http")) {
resource = coap2http;
内容来源于网络,如有侵权,请联系作者删除!