org.restlet.data.Protocol.isConfidential()方法的使用及代码示例

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

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

Protocol.isConfidential介绍

[英]Indicates if the protocol guarantees the confidentially of the messages exchanged, for example via a SSL-secured connection.
[中]指示协议是否保证交换消息的机密性,例如通过SSL安全连接。

代码示例

代码示例来源:origin: org.restlet/org.restlet

/**
 * Implemented based on the {@link Protocol#isConfidential()} method for the
 * request's protocol returned by {@link #getProtocol()};
 */
@Override
public boolean isConfidential() {
  return (getProtocol() == null) ? false : getProtocol().isConfidential();
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Implemented based on the {@link Protocol#isConfidential()} method for the
 * request's protocol returned by {@link #getProtocol()};
 */
@Override
public boolean isConfidential() {
  return (getProtocol() == null) ? false : getProtocol().isConfidential();
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Creates the protocol associated to a URI scheme name. If an existing
 * constant exists then it is returned, otherwise a new instance is created.
 * 
 * @param name
 *            The scheme name.
 * @param version
 *            The version number.
 * @return The associated protocol.
 */
public static Protocol valueOf(String name, String version) {
  Protocol result = valueOf(name);
  if (!version.equals(result.getVersion())) {
    result = new Protocol(result.getSchemeName(), result.getName(),
        result.getTechnicalName(), result.getDescription(),
        result.getDefaultPort(), result.isConfidential(), version);
  }
  return result;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Creates the protocol associated to a URI scheme name. If an existing
 * constant exists then it is returned, otherwise a new instance is created.
 * 
 * @param name
 *            The scheme name.
 * @param version
 *            The version number.
 * @return The associated protocol.
 */
public static Protocol valueOf(String name, String version) {
  Protocol result = valueOf(name);
  if (!version.equals(result.getVersion())) {
    result = new Protocol(result.getSchemeName(), result.getName(),
        result.getTechnicalName(), result.getDescription(),
        result.getDefaultPort(), result.isConfidential(), version);
  }
  return result;
}

相关文章