Class: T2Server::HttpsConnection

Inherits:
HttpConnection show all
Defined in:
lib/t2-server/net/connection.rb

Overview

A class representing a https connection to a Taverna Server. This class should only ever be created via the T2Server::Connection factory class.

Instance Attribute Summary

Attributes inherited from HttpConnection

#uri

Instance Method Summary collapse

Methods inherited from HttpConnection

#DELETE, #GET, #OPTIONS, #POST, #PUT

Constructor Details

#initialize(uri, params = nil) ⇒ HttpsConnection

Open a https connection to the Taverna Server at the uri supplied.



302
303
304
305
306
307
308
309
310
311
# File 'lib/t2-server/net/connection.rb', line 302

def initialize(uri, params = nil)
  super(uri, params)

  if OpenSSL::SSL::SSLContext::METHODS.include? @params[:ssl_version]
    @http.ssl_version = @params[:ssl_version]
  end

  set_peer_verification
  set_client_authentication
end