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.



332
333
334
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 332

def authentication_method
  @authentication_method
end

#connect_timeoutObject

The number of seconds to wait while trying to connect. Must be larger than zero.



326
327
328
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 326

def connect_timeout
  @connect_timeout
end

#custom_headersObject

Adds a e-mail custom header



353
354
355
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 353

def custom_headers
  @custom_headers
end

#dataObject

Data to send.



321
322
323
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 321

def data
  @data
end

#methodObject

Request method.



319
320
321
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 319

def method
  @method
end

#passwordObject

A password to use for the connection.



330
331
332
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 330

def password
  @password
end

#sign_secretObject

The secret to sign the notification with



355
356
357
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 355

def sign_secret
  @sign_secret
end

#ssl_certificateObject

SSL certificate to verify the peer with.



337
338
339
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 337

def ssl_certificate
  @ssl_certificate
end

#ssl_certificate_passwordObject

The password required to use the certificate.



341
342
343
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 341

def ssl_certificate_password
  @ssl_certificate_password
end

#ssl_certificate_typeObject

The format of the certificate.



339
340
341
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 339

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.



343
344
345
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 343

def ssl_engine
  @ssl_engine
end

#ssl_engine_defaultObject

The identifier for the crypto engine used for asymmetric crypto operations.



345
346
347
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 345

def ssl_engine_default
  @ssl_engine_default
end

#ssl_keyObject

Private SSL key.



349
350
351
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 349

def ssl_key
  @ssl_key
end

#ssl_key_passwordObject

The secret password needed to use the private SSL key specified in ssl key.



351
352
353
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 351

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.



347
348
349
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 347

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.



335
336
337
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 335

def ssl_version
  @ssl_version
end

#timeoutObject

The maximum number of seconds to allow cURL functions to execute.



323
324
325
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 323

def timeout
  @timeout
end

#urlObject

Remote server URL



317
318
319
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 317

def url
  @url
end

#usernameObject

A username to use for the connection.



328
329
330
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 328

def username
  @username
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



373
374
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
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 373

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['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