Class AbstractUrlFormatter

    • Constructor Detail

      • AbstractUrlFormatter

        public AbstractUrlFormatter()
    • Method Detail

      • format

        public String format​(Url url)
        Description copied from interface: UrlFormatter
        Returns a string representation of the supplied LDAP URL.
        Specified by:
        format in interface UrlFormatter
        Parameters:
        url - to format
        Returns:
        formatted LDAP URL
      • formatScheme

        protected abstract String formatScheme​(String scheme)
        Formats the supplied scheme.
        Parameters:
        scheme - to format
        Returns:
        formatted scheme
      • formatHostname

        protected abstract String formatHostname​(String hostname)
        Formats the supplied hostname.
        Parameters:
        hostname - to format
        Returns:
        formatted hostname
      • formatBaseDn

        protected abstract String formatBaseDn​(String baseDn,
                                               Dn parsedBaseDn)
        Formats the supplied baseDN.
        Parameters:
        baseDn - to format
        parsedBaseDn - to supplement formatting options
        Returns:
        formatted baseDN
      • formatAttribute

        protected abstract String formatAttribute​(String attrName)
        Formats the supplied attribute name.
        Parameters:
        attrName - to format
        Returns:
        formatted attribute name
      • formatFilter

        protected abstract String formatFilter​(String filter,
                                               Filter parsedFilter)
        Formats the supplied filter string.
        Parameters:
        filter - to format
        parsedFilter - to supplement formatting options
        Returns:
        formatted filter string