Class AbstractRequestDsml<E extends Request>

    • Constructor Detail

      • AbstractRequestDsml

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

      • toDsml

        public org.dom4j.Element toDsml​(org.dom4j.Element root)
        Creates the Request Element and adds RequestID and Controls.
        Specified by:
        toDsml in interface DsmlDecorator<E extends Request>
        Parameters:
        root - the root element
        Returns:
        the Request Element of the given name containing
      • computeLength

        public int computeLength()
        Returns:
        the buffer's length (always 0)
      • hasResponse

        public boolean hasResponse()
        Tests to see if this Request produces one or more response types.
        Specified by:
        hasResponse in interface Request
        Returns:
        true if a response can be expected, false otherwise.