Class SearchResponseDsml

    • Constructor Detail

      • SearchResponseDsml

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

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

      • addResponse

        public boolean addResponse​(DsmlDecorator<? extends Response> response)
        Adds a response.
        Parameters:
        response - the response to add
        Returns:
        true (as per the general contract of the Collection.add method).
      • removeResponse

        public boolean removeResponse​(DsmlDecorator<? extends Response> response)
        Removes a response.
        Parameters:
        response - the response to remove
        Returns:
        true if this list contained the specified element.
      • toDsml

        public org.dom4j.Element toDsml​(org.dom4j.Element root)
        Converts the request/reponse to its XML representation in the DSMLv2 format
        Parameters:
        root - the root dom4j Element
        Returns:
        the dom4j Element corresponding to the entry.