virtual ~SOAPTransport() {}
/**
+ * Indicates whether transport provides confidentiality.
+ *
+ * @return true iff transport layer provides confidentiality
+ */
+ virtual bool isConfidential() const=0;
+
+ /**
* Sets the connection timeout.
*
* @param timeout time to wait for connection to server in seconds, or -1 for no timeout
g_CURLPool->put(m_peer.getName(), m_endpoint.c_str(), m_handle);
}
+ bool isConfidential() const {
+ return m_endpoint.find("https")==0;
+ }
+
bool setConnectTimeout(long timeout) const {
return (curl_easy_setopt(m_handle,CURLOPT_CONNECTTIMEOUT,timeout)==CURLE_OK);
}