Class: Kaltura::KalturaHttpNotificationDispatchJobData

Inherits:
KalturaEventNotificationDispatchJobData show all
Defined in:
lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaEventNotificationDispatchJobData

#content_parameters, #template_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#authentication_methodObject

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_timeoutObject

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_headersObject

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

#dataObject

Data to send.



291
292
293
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 291

def data
  @data
end

#methodObject

Request method.



288
289
290
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 288

def method
  @method
end

#passwordObject

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_secretObject

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_certificateObject

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_passwordObject

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_typeObject

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_engineObject

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_defaultObject

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_keyObject

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_passwordObject

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_typeObject

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_versionObject

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

#timeoutObject

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

#urlObject

Remote server URL



285
286
287
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 285

def url
  @url
end

#usernameObject

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