Package org.ldaptive

Class AbstractOperationConnectionValidator<Q extends Request,​S extends Result>

    • Field Detail

      • request

        private Q extends Request request
        Operation request.
      • validResultCodes

        private ResultCode[] validResultCodes
        Valid result codes.
    • Constructor Detail

      • AbstractOperationConnectionValidator

        public AbstractOperationConnectionValidator()
    • Method Detail

      • getRequest

        public Q getRequest()
        Returns the operation request.
        Returns:
        operation request
      • setRequest

        public void setRequest​(Q req)
        Sets the operation request.
        Parameters:
        req - operation request
      • getValidResultCodes

        public ResultCode[] getValidResultCodes()
        Returns the valid result codes.
        Returns:
        valid result codes
      • setValidResultCodes

        public void setValidResultCodes​(ResultCode... codes)
        Sets the valid result codes.
        Parameters:
        codes - that represent a valid connection
      • performOperation

        protected abstract OperationHandle<Q,​S> performOperation​(Connection conn)
        Perform the operation for this validator.
        Parameters:
        conn - to validate
        Returns:
        operation handle