Class: Kaltura::KalturaHttpNotificationTemplate

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

Instance Attribute Summary collapse

Attributes inherited from KalturaEventNotificationTemplate

#automatic_dispatch_enabled, #content_parameters, #created_at, #description, #event_conditions, #event_object_type, #event_type, #id, #manual_dispatch_enabled, #name, #partner_id, #status, #system_name, #type, #updated_at, #user_parameters

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.



216
217
218
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 216

def authentication_method
  @authentication_method
end

#connect_timeoutObject

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



210
211
212
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 210

def connect_timeout
  @connect_timeout
end

#custom_headersObject

Adds a e-mail custom header



237
238
239
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 237

def custom_headers
  @custom_headers
end

#dataObject

Data to send.



205
206
207
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 205

def data
  @data
end

#methodObject

Request method.



203
204
205
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 203

def method
  @method
end

#passwordObject

A password to use for the connection.



214
215
216
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 214

def password
  @password
end

#ssl_certificateObject

SSL certificate to verify the peer with.



221
222
223
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 221

def ssl_certificate
  @ssl_certificate
end

#ssl_certificate_passwordObject

The password required to use the certificate.



225
226
227
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 225

def ssl_certificate_password
  @ssl_certificate_password
end

#ssl_certificate_typeObject

The format of the certificate.



223
224
225
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 223

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.



227
228
229
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 227

def ssl_engine
  @ssl_engine
end

#ssl_engine_defaultObject

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



229
230
231
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 229

def ssl_engine_default
  @ssl_engine_default
end

#ssl_keyObject

Private SSL key.



233
234
235
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 233

def ssl_key
  @ssl_key
end

#ssl_key_passwordObject

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



235
236
237
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 235

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.



231
232
233
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 231

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.



219
220
221
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 219

def ssl_version
  @ssl_version
end

#timeoutObject

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



207
208
209
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 207

def timeout
  @timeout
end

#urlObject

Remote server URL



201
202
203
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 201

def url
  @url
end

#usernameObject

A username to use for the connection.



212
213
214
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 212

def username
  @username
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 255

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 = KalturaClientBase.object_from_xml(xml_element.elements['data'], 'KalturaHttpNotificationData')
	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
end