VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
List of all members
Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory Class Reference

Avaliable Methods

private method _create_http_client_transport ()
 
public method get_http_connection ()
 
public method get_connection ()
 
public method get_insecure_connection ()
 
public method new ()
 

Detailed Description

Class to allow encapsulation of connections. This is likely a placeholder.

Member Function Documentation

private method Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory::_create_http_client_transport ( )

Create Http transport client

Parameters
uri- URI representing the server to connect. Must not be null. Should be of the form: http(s)://<IP_address>:<port>/<Service_endpoint>.
http_config- Com::Vmware::Vapi::Protocol::HttpConfiguration object
Return values
Com::Vmware::Vapi::Protocol::Client::Rpc::Http::HttpClientobject
Code:
click to view
public method Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory::get_connection ( )

Get Secured Protocol Connection of specified type, if CertificatePath info has been passed

Parameters
protocol_type- Protocol type [http / https etc]. Must not be null.
uri- URI representing the server to connect. Must not be null. Should be of the form: http(s)://<IP_address>:<port>/<Service_endpoint>.
http_config[optional] - Com::Vmware::Vapi::Protocol::HttpConfiguration object
certificate_path[optional] - Complete certificate [.der file] path
Return values
Com::Vmware::Vapi::Protocol::ProtocolConnectionImplobject
Code:
click to view
public method Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory::get_http_connection ( )

Get Http Connection

Parameters
uri- URI representing the server to connect. Must not be null. Should be of the form: http(s)://<IP_address>:<port>/<Service_endpoint>.
client_config- Com::Vmware::Vapi::Protocol::ClientConfiguration object
http_config- Com::Vmware::Vapi::Protocol::HttpConfiguration object
Return values
Com::Vmware::Vapi::Protocol::ProtocolConnectionImplobject
Code:
click to view
public method Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory::get_insecure_connection ( )

Get insecured Protocol Connection of specified type

Parameters
protocol_type- Protocol type [http / https etc]. Must not be null.
uri- URI representing the server to connect. Must not be null. Should be of the form: http(s)://<IP_address>:<port>/<Service_endpoint>.
http_config[optional] - Com::Vmware::Vapi::Protocol::HttpConfiguration object
Return values
Com::Vmware::Vapi::Protocol::ProtocolConnectionImplobject
Code:
click to view
public method Com::Vmware::Vapi::Protocol::ProtocolConnectionFactory::new ( )

Constructor

Parameters
None
Return values
Blessed object
Code:
click to view

The documentation for this class was generated from the following file: