def __init__(self, options):
        # type: (RuntimeConfiguration) -> None
        """Generic implementation of :py:class:`RequestDispatcher`.

        :param options: Runtime configuration instance, containing list of
            dispatch components required for Dispatcher Initialization.
        :type options: RuntimeConfiguration
        """
        if options.handler_adapters is None:
            options.handler_adapters = []

        if options.request_mappers is None:
            options.request_mappers = []

        if options.request_interceptors is None:
            options.request_interceptors = []

        if options.response_interceptors is None:
            options.response_interceptors = []

        self.handler_adapters = options.handler_adapters
        self.request_mappers = options.request_mappers
        self.exception_mapper = options.exception_mapper
        self.request_interceptors = options.request_interceptors
        self.response_interceptors = options.response_interceptors
def __init__ ( self , options ) : if options . handler_adapters is None : options . handler_adapters = [ ] if options . request_mappers is None : options . request_mappers = [ ] if options . request_interceptors is None : options . request_interceptors = [ ] if options . response_interceptors is None : options . response_interceptors = [ ] self . handler_adapters = options . handler_adapters self . request_mappers = options . request_mappers self . exception_mapper = options . exception_mapper self . request_interceptors = options . request_interceptors self . response_interceptors = options . response_interceptors
Generic implementation of :py:class:`RequestDispatcher`.

        :param options: Runtime configuration instance, containing list of
            dispatch components required for Dispatcher Initialization.
        :type options: RuntimeConfiguration