Class: Kaltura::KalturaHttpNotificationDispatchJobData
- Inherits:
-
KalturaEventNotificationDispatchJobData
- Object
- KalturaObjectBase
- KalturaJobData
- KalturaEventNotificationDispatchJobData
- Kaltura::KalturaHttpNotificationDispatchJobData
- Defined in:
- lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb
Instance Attribute Summary collapse
-
#authentication_method ⇒ Object
The HTTP authentication method to use.
-
#connect_timeout ⇒ Object
The number of seconds to wait while trying to connect.
-
#custom_headers ⇒ Object
Adds a e-mail custom header.
-
#data ⇒ Object
Data to send.
-
#method ⇒ Object
Request method.
-
#password ⇒ Object
A password to use for the connection.
-
#sign_secret ⇒ Object
The secret to sign the notification with.
-
#ssl_certificate ⇒ Object
SSL certificate to verify the peer with.
-
#ssl_certificate_password ⇒ Object
The password required to use the certificate.
-
#ssl_certificate_type ⇒ Object
The format of the certificate.
-
#ssl_engine ⇒ Object
The identifier for the crypto engine of the private SSL key specified in ssl key.
-
#ssl_engine_default ⇒ Object
The identifier for the crypto engine used for asymmetric crypto operations.
-
#ssl_key ⇒ Object
Private SSL key.
-
#ssl_key_password ⇒ Object
The secret password needed to use the private SSL key specified in ssl key.
-
#ssl_key_type ⇒ Object
The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
-
#ssl_version ⇒ Object
The SSL version (2 or 3) to use.
-
#timeout ⇒ Object
The maximum number of seconds to allow cURL functions to execute.
-
#url ⇒ Object
Remote server URL.
-
#username ⇒ Object
A username to use for the connection.
Attributes inherited from KalturaEventNotificationDispatchJobData
#content_parameters, #template_id
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#authentication_method ⇒ Object
The HTTP authentication method to use.
307 308 309 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 307 def authentication_method @authentication_method end |
#connect_timeout ⇒ Object
The number of seconds to wait while trying to connect. Must be larger than zero.
298 299 300 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 298 def connect_timeout @connect_timeout end |
#custom_headers ⇒ Object
Adds a e-mail custom header
338 339 340 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 338 def custom_headers @custom_headers end |
#data ⇒ Object
Data to send.
291 292 293 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 291 def data @data end |
#method ⇒ Object
Request method.
288 289 290 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 288 def method @method end |
#password ⇒ Object
A password to use for the connection.
304 305 306 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 304 def password @password end |
#sign_secret ⇒ Object
The secret to sign the notification with
341 342 343 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 341 def sign_secret @sign_secret end |
#ssl_certificate ⇒ Object
SSL certificate to verify the peer with.
314 315 316 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 314 def ssl_certificate @ssl_certificate end |
#ssl_certificate_password ⇒ Object
The password required to use the certificate.
320 321 322 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 320 def ssl_certificate_password @ssl_certificate_password end |
#ssl_certificate_type ⇒ Object
The format of the certificate.
317 318 319 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 317 def ssl_certificate_type @ssl_certificate_type end |
#ssl_engine ⇒ Object
The identifier for the crypto engine of the private SSL key specified in ssl key.
323 324 325 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 323 def ssl_engine @ssl_engine end |
#ssl_engine_default ⇒ Object
The identifier for the crypto engine used for asymmetric crypto operations.
326 327 328 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 326 def ssl_engine_default @ssl_engine_default end |
#ssl_key ⇒ Object
Private SSL key.
332 333 334 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 332 def ssl_key @ssl_key end |
#ssl_key_password ⇒ Object
The secret password needed to use the private SSL key specified in ssl key.
335 336 337 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 335 def ssl_key_password @ssl_key_password end |
#ssl_key_type ⇒ Object
The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
329 330 331 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 329 def ssl_key_type @ssl_key_type end |
#ssl_version ⇒ Object
The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.
311 312 313 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 311 def ssl_version @ssl_version end |
#timeout ⇒ Object
The maximum number of seconds to allow cURL functions to execute.
294 295 296 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 294 def timeout @timeout end |
#url ⇒ Object
Remote server URL
285 286 287 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 285 def url @url end |
#username ⇒ Object
A username to use for the connection.
301 302 303 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 301 def username @username end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 359 def from_xml(xml_element) super self.url = xml_element.elements['url'].text self.method = xml_element.elements['method'].text self.data = xml_element.elements['data'].text self.timeout = xml_element.elements['timeout'].text self.connect_timeout = xml_element.elements['connectTimeout'].text self.username = xml_element.elements['username'].text self.password = xml_element.elements['password'].text self.authentication_method = xml_element.elements['authenticationMethod'].text self.ssl_version = xml_element.elements['sslVersion'].text self.ssl_certificate = xml_element.elements['sslCertificate'].text self.ssl_certificate_type = xml_element.elements['sslCertificateType'].text self.ssl_certificate_password = xml_element.elements['sslCertificatePassword'].text self.ssl_engine = xml_element.elements['sslEngine'].text self.ssl_engine_default = xml_element.elements['sslEngineDefault'].text self.ssl_key_type = xml_element.elements['sslKeyType'].text self.ssl_key = xml_element.elements['sslKey'].text self.ssl_key_password = xml_element.elements['sslKeyPassword'].text self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue') self.sign_secret = xml_element.elements['signSecret'].text end |