Package gofer :: Package messaging :: Module broker :: Class URL
[hide private]
[frames] | no frames]

Class URL

source code

Represents a QPID broker URL.

Instance Methods [hide private]
str
simple(self)
Get the simple string representation: <host>:<port>
source code
 
__init__(self, s) source code
 
__hash__(self) source code
 
__eq__(self, other) source code
 
__str__(self) source code
Class Methods [hide private]
tuple
split(cls, s)
Split the url string.
source code
tuple
spliturl(cls, s)
Split the transport and url parts.
source code
tuple
splitport(cls, s, d=5672)
Split the host and port.
source code
Instance Variables [hide private]
str host
The host.
int port
The tcp port.
str transport
A qpid transport.
Method Details [hide private]

split(cls, s)
Class Method

source code 

Split the url string.

Parameters:
  • s (str) - A url string format: <transport>://<host>:<port>.
Returns: tuple
The url parts: (transport, host, port)

spliturl(cls, s)
Class Method

source code 

Split the transport and url parts.

Parameters:
  • s (str) - A url string format: <transport>://<host>:<port>.
Returns: tuple
The urlparts: (transport, hostport)

splitport(cls, s, d=5672)
Class Method

source code 

Split the host and port.

Parameters:
  • s (str) - A url string format: <host>:<port>.
Returns: tuple
The urlparts: (host, port)

simple(self)

source code 

Get the simple string representation: <host>:<port>

Returns: str
"<host>:<port>"

__init__(self, s)
(Constructor)

source code 
Parameters:
  • s (str) - A url string format: <transport>://<host>:<port>.