Class ResultCodeFactory


  • public class ResultCodeFactory
    extends Object
    A utility class to help creating ResultCode objects containing a code value (integer) and a descr value (String).
    • Constructor Detail

      • ResultCodeFactory

        public ResultCodeFactory()
    • Method Detail

      • create

        public static ResultCode create​(ObjectFactory objFactory,
                                        int resultCode)
        Create a ResultCode object that contains the resultCode, and, if valid, a text description (from RFC 2251) of the resultCode.
        Parameters:
        objFactory - The JAXB factory used to create the underlying object.
        resultCode - The LDAP result code.
        Returns:
        A ResultCode object with a code and possibly a description.