+ -
当前位置:首页 → 问答吧 → request.isSecure()这个方法是什么意思?

request.isSecure()这个方法是什么意思?

时间:2011-10-21

来源:互联网

请教request.isSecure()什么意思?



if(request.isSecure()) {

}

用在if判断语句里又起什么作用?

作者: sgwe_cxx   发布时间: 2011-10-21

boolean isSecure()

Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. 

Returns:
a boolean indicating if the request was made using a secure channel

作者: funfenffun   发布时间: 2011-10-21

public boolean isSecure() 表示请求是否使用安全协议(如HTTPS) 

作者: flagiris   发布时间: 2011-10-21

返回一个 boolean 值,指示此请求是否是使用安全通道(比如 HTTPS)发出的。
return 指示请求是否是使用安全通道发出的 boolean 值

作者: funfenffun   发布时间: 2011-10-21