Class: URI::STOMP_SSL

Inherits:
STOMP
  • Object
show all
Defined in:
lib/stomper/uris.rb

Overview

This class encapsulates a URI with a schema of “stomp+ssl”. For example, “stomp+ssl://host.domain.tld”

Constant Summary collapse

DEFAULT_PORT =
Note:

The Stomp specification does not define any default ports, this port has been chosen because it is fairly common amongst brokers that provide a Secure Stomp interface, such as Apache’s ActiveMQ.

Specifies the default port of a standard Stomp connection. Any URI without explicit port specified will use this value instead.

61612

Instance Method Summary collapse

Instance Method Details

#create_socket(*args) ⇒ Object

Creates a SSL socket connection to the host and port specified by this URI. If a hash is included as the last argument to the call, it will be passed along as SSL options to Stomper::Sockets::SSL#initialize

Returns:

  • Stomper::Sockets::SSL



39
40
41
42
# File 'lib/stomper/uris.rb', line 39

def create_socket(*args)
  ::Stomper::Sockets::SSL.new(self.host||'localhost', self.port,
    (args.last.is_a?(Hash) ? args.pop : {}))
end