Class SearchResultReferenceDsml

    • Constructor Detail

      • SearchResultReferenceDsml

        public SearchResultReferenceDsml​(LdapApiService codec)
        Creates a new getDecoratedMessage() of SearchResultReferenceDsml.
        Parameters:
        codec - The LDAP Service to use
      • SearchResultReferenceDsml

        public SearchResultReferenceDsml​(LdapApiService codec,
                                         SearchResultReference ldapMessage)
        Creates a new getDecoratedMessage() of SearchResultReferenceDsml.
        Parameters:
        codec - The LDAP Service to use
        ldapMessage - the message to decorate
    • Method Detail

      • toDsml

        public Element toDsml​(Element root)
        Converts the request/reponse to its XML representation in the DSMLv2 format
        Specified by:
        toDsml in interface DsmlDecorator<SearchResultReference>
        Parameters:
        root - the root dom4j Element
        Returns:
        the dom4j Element corresponding to the entry.
      • addSearchResultReference

        public void addSearchResultReference​(LdapUrl searchResultReference)
        Add a new reference to the list.
        Parameters:
        searchResultReference - The search result reference
      • getSearchResultReferences

        public Collection<String> getSearchResultReferences()
        Get the list of references
        Returns:
        An ArrayList of SearchResultReferences
      • setReferral

        public void setReferral​(Referral referral)
        Sets the sequence of LdapUrls as a Referral instance.
        Specified by:
        setReferral in interface SearchResultReference
        Parameters:
        referral - the sequence of LdapUrls