org.eclipse.californium.core.coap.OptionSet.hasProxyScheme()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(64)

本文整理了Java中org.eclipse.californium.core.coap.OptionSet.hasProxyScheme()方法的一些代码示例,展示了OptionSet.hasProxyScheme()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OptionSet.hasProxyScheme()方法的具体详情如下:
包路径:org.eclipse.californium.core.coap.OptionSet
类名称:OptionSet
方法名:hasProxyScheme

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;

相关文章

微信公众号

最新文章

更多