Package entropy :: Package services :: Module client :: Class WebServiceFactory

Class WebServiceFactory

source code


Base Entropy Repository Web Services Factory. Generates WebService objects that can be used to communicate with the established web service. This is a base class and subclasses should be preferred (example: entropy.client.services.interfaces.ClientWebServiceFactory)

Nested Classes
  InvalidWebServiceFactory
Raised when an invalid WebService based class is passed.
Instance Methods
 
__init__(self, web_service_class, entropy_client)
WebServiceFactory constructor.
source code
 
new(self, repository_id)
Return a new WebService object for given repository identifier.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, web_service_class, entropy_client)
(Constructor)

source code 

WebServiceFactory constructor.

Parameters:
  • entropy_client (entropy.client.interfaces.client.Client) - Entropy Client interface
Overrides: object.__init__

new(self, repository_id)

source code 

Return a new WebService object for given repository identifier.

Parameters:
  • repository_id - repository identifier
Raises: