def validate(obj): """Validates a handler implementation against the ISerialize interface.""" members = [ 'serialize', 'deserialize', 'get_headers', ] interface.validate(ISerialization, obj, members)
def validate(obj): """Validates a handler implementation against the IResponse interface.""" members = [ 'status', 'data', ] metas = [] interface.validate(IResponse, obj, members, metas)
def validate(obj): """Validates a handler implementation against the IResource interface.""" members = [] metas = [ 'baseurl', 'resource', 'path', 'request', ] interface.validate(IResource, obj, members)
def validate(obj): """Validates a handler implementation against the IResource interface.""" members = [ 'filter', ] metas = [ 'baseurl', 'resource', 'path', 'request', ] interface.validate(IResource, obj, members)
def validate(obj): """Validates a handler implementation against the IRequest interface.""" members = [ 'add_param', 'add_url_param', 'add_header', 'make_request', 'handle_response', ] metas = [ 'response_handler', 'serialization_handler', 'serialize', 'deserialize', ] interface.validate(IRequest, obj, members, metas)
def validate(obj): """Validates a handler implementation against the IRequest interface.""" members = ["add_param", "add_url_param", "add_header", "request", "handle_response"] metas = ["baseurl", "debug", "serialization", "serialize", "deserialize"] interface.validate(IRequest, obj, members, metas)