| |
- __builtin__.object
-
- Service
class Service(__builtin__.object) |
|
The base class for ReMiSC-compliant microservice objects. Such objects
define operations as methods using the @isop decorator. Data exchange
models supporting such operations should be co-defined (or at least
included) in the module where the Service-derived class is defined, and
marked with the @isdxm decorator. The top-level folder is used to route
the operation; when one is not provided, _root is invoked instead. |
|
Methods defined here:
- __init__(self)
- app(self, env, res)
- Feed env parameters into urlparse object and query dictionary to 1)
determine the appropriate operation to which those arguments will be
forwarded, and 2) invoke that operation to construct a response.
- getAllDxms(self)
- Returns all data exchange model (DXM) classes defined in conjunction
with this service object by iterating over the contents of the module
where this class is defined and returning the names of those classes
that have the 'isdxm' attribute (assigned by the @isdxm decorator).
- getAllOps(self)
- Returns the names of all operations provided by this instance of the
Service class, as determined by the @isop decorator (which adds the
isop method attribute).
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |