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.
-
#content_type ⇒ Object
The type of the data to send.
-
#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.
334 335 336 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 334 def authentication_method @authentication_method end |
#connect_timeout ⇒ Object
The number of seconds to wait while trying to connect. Must be larger than zero.
328 329 330 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 328 def connect_timeout @connect_timeout end |
#content_type ⇒ Object
The type of the data to send.
321 322 323 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 321 def content_type @content_type end |
#custom_headers ⇒ Object
Adds a e-mail custom header
355 356 357 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 355 def custom_headers @custom_headers end |
#data ⇒ Object
Data to send.
323 324 325 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 323 def data @data end |
#method ⇒ Object
Request method.
319 320 321 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 319 def method @method end |
#password ⇒ Object
A password to use for the connection.
332 333 334 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 332 def password @password end |
#sign_secret ⇒ Object
The secret to sign the notification with
357 358 359 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 357 def sign_secret @sign_secret end |
#ssl_certificate ⇒ Object
SSL certificate to verify the peer with.
339 340 341 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 339 def ssl_certificate @ssl_certificate end |
#ssl_certificate_password ⇒ Object
The password required to use the certificate.
343 344 345 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 343 def ssl_certificate_password @ssl_certificate_password end |
#ssl_certificate_type ⇒ Object
The format of the certificate.
341 342 343 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 341 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.
345 346 347 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 345 def ssl_engine @ssl_engine end |
#ssl_engine_default ⇒ Object
The identifier for the crypto engine used for asymmetric crypto operations.
347 348 349 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 347 def ssl_engine_default @ssl_engine_default end |
#ssl_key ⇒ Object
Private SSL key.
351 352 353 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 351 def ssl_key @ssl_key end |
#ssl_key_password ⇒ Object
The secret password needed to use the private SSL key specified in ssl key.
353 354 355 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 353 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.
349 350 351 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 349 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.
337 338 339 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 337 def ssl_version @ssl_version end |
#timeout ⇒ Object
The maximum number of seconds to allow cURL functions to execute.
325 326 327 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 325 def timeout @timeout end |
#url ⇒ Object
Remote server URL
317 318 319 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 317 def url @url end |
#username ⇒ Object
A username to use for the connection.
330 331 332 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 330 def username @username end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 375 def from_xml(xml_element) super if xml_element.elements['url'] != nil self.url = xml_element.elements['url'].text end if xml_element.elements['method'] != nil self.method = xml_element.elements['method'].text end if xml_element.elements['contentType'] != nil self.content_type = xml_element.elements['contentType'].text end if xml_element.elements['data'] != nil self.data = xml_element.elements['data'].text end if xml_element.elements['timeout'] != nil self.timeout = xml_element.elements['timeout'].text end if xml_element.elements['connectTimeout'] != nil self.connect_timeout = xml_element.elements['connectTimeout'].text end if xml_element.elements['username'] != nil self.username = xml_element.elements['username'].text end if xml_element.elements['password'] != nil self.password = xml_element.elements['password'].text end if xml_element.elements['authenticationMethod'] != nil self.authentication_method = xml_element.elements['authenticationMethod'].text end if xml_element.elements['sslVersion'] != nil self.ssl_version = xml_element.elements['sslVersion'].text end if xml_element.elements['sslCertificate'] != nil self.ssl_certificate = xml_element.elements['sslCertificate'].text end if xml_element.elements['sslCertificateType'] != nil self.ssl_certificate_type = xml_element.elements['sslCertificateType'].text end if xml_element.elements['sslCertificatePassword'] != nil self.ssl_certificate_password = xml_element.elements['sslCertificatePassword'].text end if xml_element.elements['sslEngine'] != nil self.ssl_engine = xml_element.elements['sslEngine'].text end if xml_element.elements['sslEngineDefault'] != nil self.ssl_engine_default = xml_element.elements['sslEngineDefault'].text end if xml_element.elements['sslKeyType'] != nil self.ssl_key_type = xml_element.elements['sslKeyType'].text end if xml_element.elements['sslKey'] != nil self.ssl_key = xml_element.elements['sslKey'].text end if xml_element.elements['sslKeyPassword'] != nil self.ssl_key_password = xml_element.elements['sslKeyPassword'].text end if xml_element.elements['customHeaders'] != nil self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue') end if xml_element.elements['signSecret'] != nil self.sign_secret = xml_element.elements['signSecret'].text end end |