本文整理了Java中org.apache.commons.httpclient.protocol.Protocol.isSecure()
方法的一些代码示例,展示了Protocol.isSecure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Protocol.isSecure()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.protocol.Protocol
类名称:Protocol
方法名:isSecure
[英]Returns true if this protocol is secure
[中]如果此协议是安全的,则返回true
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Return true if the specified object equals this object.
* @param obj The object to compare against.
* @return true if the objects are equal.
*/
public boolean equals(Object obj) {
if (obj instanceof Protocol) {
Protocol p = (Protocol) obj;
return (
defaultPort == p.getDefaultPort()
&& scheme.equalsIgnoreCase(p.getScheme())
&& secure == p.isSecure()
&& socketFactory.equals(p.getSocketFactory()));
} else {
return false;
}
}
代码示例来源:origin: commons-httpclient/commons-httpclient
throw new IllegalStateException("destination host must be configured");
if (hostconf.getProtocol().isSecure()) {
throw new IllegalStateException("secure protocol socket factory may not be used");
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.mule.transports/mule-transport-http
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.zaproxy/zap
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Returns <tt>true</tt> if the connection is established over
* a secure protocol.
*
* @return <tt>true</tt> if connected over a secure protocol.
*/
public boolean isSecure() {
return protocolInUse.isSecure();
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Return true if the specified object equals this object.
* @param obj The object to compare against.
* @return true if the objects are equal.
*/
public boolean equals(Object obj) {
if (obj instanceof Protocol) {
Protocol p = (Protocol) obj;
return (
defaultPort == p.getDefaultPort()
&& scheme.equalsIgnoreCase(p.getScheme())
&& secure == p.isSecure()
&& socketFactory.equals(p.getSocketFactory()));
} else {
return false;
}
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Return true if the specified object equals this object.
* @param obj The object to compare against.
* @return true if the objects are equal.
*/
public boolean equals(Object obj) {
if (obj instanceof Protocol) {
Protocol p = (Protocol) obj;
return (
defaultPort == p.getDefaultPort()
&& scheme.equalsIgnoreCase(p.getScheme())
&& secure == p.isSecure()
&& socketFactory.equals(p.getSocketFactory()));
} else {
return false;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Return true if the specified object equals this object.
* @param obj The object to compare against.
* @return true if the objects are equal.
*/
public boolean equals(Object obj) {
if (obj instanceof Protocol) {
Protocol p = (Protocol) obj;
return (
defaultPort == p.getDefaultPort()
&& scheme.equalsIgnoreCase(p.getScheme())
&& secure == p.isSecure()
&& socketFactory.equals(p.getSocketFactory()));
} else {
return false;
}
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Return true if the specified object equals this object.
* @param obj The object to compare against.
* @return true if the objects are equal.
*/
public boolean equals(Object obj) {
if (obj instanceof Protocol) {
Protocol p = (Protocol) obj;
return (
defaultPort == p.getDefaultPort()
&& scheme.equalsIgnoreCase(p.getScheme())
&& secure == p.isSecure()
&& socketFactory.equals(p.getSocketFactory()));
} else {
return false;
}
}
代码示例来源:origin: axis/axis
String host = hostConfiguration.getHost();
String path = targetURL.getPath();
boolean secure = hostConfiguration.getProtocol().isSecure();
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, host, path, secure);
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, host, path, secure);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
String host = hostConfiguration.getHost();
String path = targetURL.getPath();
boolean secure = hostConfiguration.getProtocol().isSecure();
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, host, path, secure);
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, host, path, secure);
代码示例来源:origin: org.apache.axis/axis
String host = hostConfiguration.getHost();
String path = targetURL.getPath();
boolean secure = hostConfiguration.getProtocol().isSecure();
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, host, path, secure);
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, host, path, secure);
代码示例来源:origin: org.apache.commons/httpclient
throw new IllegalStateException("destination host must be configured");
if (hostconf.getProtocol().isSecure()) {
throw new IllegalStateException("secure protocol socket factory may not be used");
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
throw new IllegalStateException("destination host must be configured");
if (hostconf.getProtocol().isSecure()) {
throw new IllegalStateException("secure protocol socket factory may not be used");
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
throw new IllegalStateException("destination host must be configured");
if (hostconf.getProtocol().isSecure()) {
throw new IllegalStateException("secure protocol socket factory may not be used");
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
throw new IllegalStateException("destination host must be configured");
if (hostconf.getProtocol().isSecure()) {
throw new IllegalStateException("secure protocol socket factory may not be used");
内容来源于网络,如有侵权,请联系作者删除!