Class: Kaltura::KalturaHttpNotificationTemplate
- Inherits:
-
KalturaEventNotificationTemplate
- Object
- KalturaObjectBase
- KalturaEventNotificationTemplate
- Kaltura::KalturaHttpNotificationTemplate
- 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.
-
#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 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
Instance Attribute Details
#authentication_method ⇒ Object
The HTTP authentication method to use.
209 210 211 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 209 def authentication_method @authentication_method end |
#connect_timeout ⇒ Object
The number of seconds to wait while trying to connect. Must be larger than zero.
200 201 202 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 200 def connect_timeout @connect_timeout end |
#custom_headers ⇒ Object
Adds a e-mail custom header
240 241 242 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 240 def custom_headers @custom_headers end |
#data ⇒ Object
Data to send.
193 194 195 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 193 def data @data end |
#method ⇒ Object
Request method.
190 191 192 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 190 def method @method end |
#password ⇒ Object
A password to use for the connection.
206 207 208 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 206 def password @password end |
#ssl_certificate ⇒ Object
SSL certificate to verify the peer with.
216 217 218 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 216 def ssl_certificate @ssl_certificate end |
#ssl_certificate_password ⇒ Object
The password required to use the certificate.
222 223 224 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 222 def ssl_certificate_password @ssl_certificate_password end |
#ssl_certificate_type ⇒ Object
The format of the certificate.
219 220 221 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 219 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.
225 226 227 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 225 def ssl_engine @ssl_engine end |
#ssl_engine_default ⇒ Object
The identifier for the crypto engine used for asymmetric crypto operations.
228 229 230 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 228 def ssl_engine_default @ssl_engine_default end |
#ssl_key ⇒ Object
Private SSL key.
234 235 236 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 234 def ssl_key @ssl_key end |
#ssl_key_password ⇒ Object
The secret password needed to use the private SSL key specified in ssl key.
237 238 239 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 237 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.
231 232 233 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 231 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.
213 214 215 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 213 def ssl_version @ssl_version end |
#timeout ⇒ Object
The maximum number of seconds to allow cURL functions to execute.
196 197 198 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 196 def timeout @timeout end |
#url ⇒ Object
Remote server URL
187 188 189 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 187 def url @url end |
#username ⇒ Object
A username to use for the connection.
203 204 205 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 203 def username @username end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 258 def from_xml(xml_element) super self.url = xml_element.elements['url'].text self.method = xml_element.elements['method'].text self.data = KalturaClientBase.object_from_xml(xml_element.elements['data'], 'KalturaHttpNotificationData') 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') end |