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

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(125)

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

Request.isConfidential介绍

[英]Implemented based on the Protocol#isConfidential() method for the request's protocol returned by #getProtocol();
[中]基于#getProtocol()返回的请求协议的#isConfidential()方法实现;

代码示例

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

/**
 * Returns a boolean indicating whether this request was made using a secure
 * channel, such as HTTPS.
 * 
 * @return <code>true</code> if the request was made using a secure channel, <code>false</code> otherwise
 * @see SecurityContext#isSecure()
 */
public boolean isSecure() {
  return this.request.isConfidential();
}

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

/**
 * Authorizes the request only if its method is one of the authorized
 * methods.
 * 
 * @param request
 *            The request sent.
 * @param response
 *            The response to update.
 * @return True if the authorization succeeded.
 */
@Override
public boolean authorize(Request request, Response response) {
  return request.isConfidential();
}

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

/**
 * Indicates if the call came over a confidential channel such as an
 * SSL-secured connection.
 * 
 * @return True if the call came over a confidential channel.
 */
@Override
public boolean isConfidential() {
  return getWrappedRequest().isConfidential();
}

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

@Override
public boolean isConfidential() {
  return getRequest().isConfidential();
}

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

/**
 * Indicates if the message was or will be exchanged confidentially, for
 * example via a SSL-secured connection.
 * 
 * @return True if the message is confidential.
 * @see Request#isConfidential()
 */
public boolean isConfidential() {
  return getRequest() == null ? null : getRequest().isConfidential();
}

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

return Boolean.toString(this.request.isConfidential());
case "cia":
  return this.request.getClientInfo().getAddress();

相关文章