Class LocalListenerRepository

    • Constructor Detail

      • LocalListenerRepository

        public LocalListenerRepository()
        Creates a new instance of the local in-memory LocalHookListenerRepository.
    • Method Detail

      • findListeners

        public List<Listener> findListeners​(String url)
        Description copied from interface: ListenerRepository
        Searches for listeners corresponding to the given url. This is a hierarchical search, starting from top (/url/foo/bar) to bottom (/url).
        Specified by:
        findListeners in interface ListenerRepository
        Parameters:
        url - url
        Returns:
        List with listeners for the url, can be empty if no listeners are found.
      • size

        public int size()
        Description copied from interface: ListenerRepository
        Returns the size of the repository. If the repository is empty, it will return 0.
        Specified by:
        size in interface ListenerRepository
        Returns:
        size
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: ListenerRepository
        Returns whether the repository is empty or not.
        Specified by:
        isEmpty in interface ListenerRepository
        Returns:
        true if repository is empty.
      • findListeners

        public List<Listener> findListeners​(String url,
                                            String method,
                                            io.vertx.core.MultiMap headers)
        Description copied from interface: ListenerRepository
        Searches for listeners corresponding to the given url, used http method and request headers. This is a hierarchical search, starting from top (/url/foo/bar) to bottom (/url).
        Specified by:
        findListeners in interface ListenerRepository
        Parameters:
        url - url
        method - http method
        headers - http headers
        Returns:
        List with listeners for the url, can be empty if no listeners are found.